2018-04-03 17:53:14 +02:00
|
|
|
= form.text_field :value,
|
|
|
|
placeholder: champ.libelle,
|
|
|
|
class: 'small-margin',
|
2018-07-17 11:32:25 +02:00
|
|
|
data: { siret: champ.persisted? ? champs_siret_path(format: :js, champ_id: champ) : nil },
|
2018-04-03 17:53:14 +02:00
|
|
|
required: champ.mandatory?
|
2018-04-09 18:27:15 +02:00
|
|
|
.spinner.right-spinner
|
2018-04-03 17:53:14 +02:00
|
|
|
%div{ id: "etablissement-for-#{champ.id}" }
|
|
|
|
- if champ.etablissement.present?
|
|
|
|
= render partial: 'shared/dossiers/editable_champs/etablissement_titre', locals: { etablissement: champ.etablissement }
|
|
|
|
= form.fields_for :etablissement do |form|
|
|
|
|
= render partial: 'shared/dossiers/editable_champs/etablissement', locals: { form: form, signature: champ.etablissement.sign }
|