fix(form): multipart option must be set under "html" to ensure rendering as expected
This commit is contained in:
parent
6ac0114992
commit
e3ddb7779f
6 changed files with 6 additions and 9 deletions
|
@ -38,8 +38,7 @@ class TypesDeChampEditor::ChampComponent < ApplicationComponent
|
|||
def form_options
|
||||
{
|
||||
url: admin_procedure_type_de_champ_path(procedure, type_de_champ.stable_id),
|
||||
multipart: true,
|
||||
html: { id: nil, class: 'form width-100' }
|
||||
html: { multipart: true, id: nil, class: 'form width-100' }
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
.procedure-form__columns.container
|
||||
= form_for @attestation_template,
|
||||
url: admin_procedure_attestation_template_path(@procedure),
|
||||
multipart: true,
|
||||
html: { class: 'form procedure-form__column--form' } do |f|
|
||||
html: { multipart: true, class: 'form procedure-form__column--form' } do |f|
|
||||
|
||||
%h1.page-title
|
||||
Délivrance d’attestation
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
- csv_max_size = Administrateurs::GroupeInstructeursController::CSV_MAX_SIZE
|
||||
- if procedure.publiee?
|
||||
= form_tag import_admin_procedure_groupe_instructeurs_path(procedure), method: :post, multipart: true, class: "mt-4 form" do
|
||||
= form_tag import_admin_procedure_groupe_instructeurs_path(procedure), method: :post, html: { multipart: true, class: "mt-4 form" } do
|
||||
= label_tag t('.csv_import.title')
|
||||
%p.notice
|
||||
= t('.csv_import.notice_1')
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
.container
|
||||
%h1
|
||||
= form_for @procedure, url: url_for({ controller: 'administrateurs/procedures', action: :update_monavis }), multipart: true, html: { class: 'form' } do |f|
|
||||
= form_for @procedure, url: url_for({ controller: 'administrateurs/procedures', action: :update_monavis }), html: { class: 'form', multipart: true } do |f|
|
||||
= render partial: 'monavis', locals: { f: f }
|
||||
.text-right
|
||||
= f.button 'Enregistrer', class: 'button primary send'
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
.container
|
||||
= form_for @procedure,
|
||||
url: url_for({ controller: 'administrateurs/procedures', action: :update, id: @procedure.id }),
|
||||
multipart: true,
|
||||
html: { class: 'form' } do |f|
|
||||
html: { multipart: true, class: 'form' } do |f|
|
||||
|
||||
%h1.page-title Zones
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
%span.icon{ class: popup_class }
|
||||
#{popup_title}
|
||||
|
||||
= form_tag(terminer_instructeur_dossier_path(dossier.procedure, dossier), data: { turbo: true, turbo_confirm: confirm }, method: :post, multipart: true, class: 'form') do
|
||||
= form_tag(terminer_instructeur_dossier_path(dossier.procedure, dossier), data: { turbo: true, turbo_confirm: confirm }, method: :post, html: { multipart: true, class: 'form' }) do
|
||||
- if title == 'Accepter'
|
||||
= text_area :dossier, :motivation, class: 'motivation-text-area', placeholder: placeholder, required: false
|
||||
- if dossier.attestation_template&.activated?
|
||||
|
|
Loading…
Reference in a new issue