refactor(champ): simplify piece justificative champ

This commit is contained in:
Paul Chavard 2022-04-28 15:07:09 +02:00
parent 2d1370d123
commit 9b12178bbd
3 changed files with 4 additions and 11 deletions

View file

@ -1,4 +1,6 @@
<%= render_champ(@champ) %>
<%= fields_for @champ.input_name, @champ do |form| %>
<%= render_to_element("##{@champ.input_group_id}", partial: "shared/dossiers/editable_champs/editable_champ", locals: { champ: @champ, form: form }, outer: true) %>
<% end %>
<% attachment = @champ.piece_justificative_file.attachment %>
<% if attachment.virus_scanner.pending? %>