chore(a11y): mutualise la gestion des <button> qui font des action POST/DESTROY dans un composant unique

This commit is contained in:
Martin 2023-03-31 16:10:47 +02:00
parent d161a624c5
commit 035da4403f
19 changed files with 45 additions and 46 deletions

View file

@ -1,9 +1,7 @@
.container.dossier-edit
- if dossier.champs_private.present?
%section.counter-start-header-section
= render EditableChamp::AddFormRepetitionRowComponent.new
= render EditableChamp::DeleteFormRepetitionRowComponent.new
= render Attachment::DeleteFormComponent.new
= render NestedForms::FormOwnerComponent.new
= form_for dossier, url: annotations_instructeur_dossier_path(dossier.procedure, dossier), html: { class: 'form', multipart: true } do |f|
- dossier.champs_private.each do |champ|
= fields_for champ.input_name, champ do |form|