Merge pull request #1497 from betagouv/move_mutualize_champs
editable_champ: move partials path
This commit is contained in:
commit
2cacbd28cb
27 changed files with 9 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
||||||
= form_for @dossier, url: annotations_gestionnaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
= form_for @dossier, url: annotations_gestionnaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
||||||
= f.fields_for :champs_private, f.object.ordered_champs_private do |champ_form|
|
= f.fields_for :champs_private, f.object.ordered_champs_private do |champ_form|
|
||||||
- champ = champ_form.object
|
- champ = champ_form.object
|
||||||
= render partial: "new_gestionnaire/dossiers/editable_champs/editable_champ",
|
= render partial: "shared/dossiers/editable_champs/editable_champ",
|
||||||
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
|
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
|
||||||
|
|
||||||
.send-wrapper
|
.send-wrapper
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
.editable-champ
|
|
||||||
- if is_not_header_nor_explication?(champ)
|
|
||||||
= render partial: 'new_gestionnaire/dossiers/editable_champs/champ_label', locals: { form: form, champ: champ, seen_at: defined?(seen_at) ? seen_at : nil }
|
|
||||||
|
|
||||||
= render partial: "new_gestionnaire/dossiers/editable_champs/#{champ.type_champ}",
|
|
||||||
locals: { champ: champ, form: form }
|
|
|
@ -9,7 +9,7 @@
|
||||||
= form_for @dossier, html: { class: 'form', multipart: true } do |f|
|
= form_for @dossier, html: { class: 'form', multipart: true } do |f|
|
||||||
= f.fields_for :champs, @dossier.ordered_champs_v2 do |champ_form|
|
= f.fields_for :champs, @dossier.ordered_champs_v2 do |champ_form|
|
||||||
- champ = champ_form.object
|
- champ = champ_form.object
|
||||||
= render partial: "new_gestionnaire/dossiers/editable_champs/editable_champ",
|
= render partial: "shared/dossiers/editable_champs/editable_champ",
|
||||||
locals: { champ: champ, form: champ_form }
|
locals: { champ: champ, form: champ_form }
|
||||||
|
|
||||||
- tpjs = @dossier.types_de_piece_justificative.order('order_place ASC')
|
- tpjs = @dossier.types_de_piece_justificative.order('order_place ASC')
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
= form_for @dossier, url: '', html: { class: 'form' } do |f|
|
= form_for @dossier, url: '', html: { class: 'form' } do |f|
|
||||||
= f.fields_for :champs do |champ_form|
|
= f.fields_for :champs do |champ_form|
|
||||||
- champ = champ_form.object
|
- champ = champ_form.object
|
||||||
= render partial: "new_gestionnaire/dossiers/editable_champs/editable_champ",
|
= render partial: "shared/dossiers/editable_champs/editable_champ",
|
||||||
locals: { champ: champ, form: champ_form, seen_at: nil }
|
locals: { champ: champ, form: champ_form, seen_at: nil }
|
||||||
|
|
||||||
%input{ type: "password", value: "12345678" }
|
%input{ type: "password", value: "12345678" }
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
.editable-champ
|
||||||
|
- if is_not_header_nor_explication?(champ)
|
||||||
|
= render partial: 'shared/dossiers/editable_champs/champ_label', locals: { form: form, champ: champ, seen_at: defined?(seen_at) ? seen_at : nil }
|
||||||
|
|
||||||
|
= render partial: "shared/dossiers/editable_champs/#{champ.type_champ}",
|
||||||
|
locals: { champ: champ, form: form }
|
Loading…
Add table
Reference in a new issue