fix(brouillon.edit.form): when their is a type de champs repetition having a child being mandatory ; the form being not validatable the browser does not block the submission

This commit is contained in:
Martin 2022-08-24 14:23:15 +02:00 committed by mfo
parent c230db1ec4
commit 69ef1d508d

View file

@ -6,7 +6,7 @@
- else - else
- form_options = { url: modifier_dossier_url(dossier), method: :patch } - form_options = { url: modifier_dossier_url(dossier), method: :patch }
= form_for dossier, form_options.merge({ html: { id: 'dossier-edit-form', class: 'form', multipart: true } }) do |f| = form_for dossier, form_options.merge({ html: { id: 'dossier-edit-form', class: 'form', multipart: true, novalidate: 'novalidate' } }) do |f|
.prologue .prologue
%p.mandatory-explanation= t('utils.asterisk_html') %p.mandatory-explanation= t('utils.asterisk_html')