demarches-normaliennes/app/views/shared/dossiers/editable_champs/_siret.html.haml

12 lines
657 B
Text
Raw Normal View History

2018-04-03 17:53:14 +02:00
= form.text_field :value,
placeholder: champ.libelle,
class: 'small-margin',
2018-09-06 19:23:27 +02:00
data: { remote: true, debounce: true, url: champs_siret_path(form.index), params: { champ_id: champ&.id }.to_query, spinner: true },
2018-04-03 17:53:14 +02:00
required: champ.mandatory?
2018-09-06 19:23:27 +02:00
.spinner.right-spinner.hidden
%div{ class: "siret-info-#{form.index}" }
2018-04-03 17:53:14 +02:00
- if champ.etablissement.present?
= render partial: 'shared/dossiers/editable_champs/etablissement_titre', locals: { etablissement: champ.etablissement }
2018-09-06 19:23:27 +02:00
= form.fields_for :etablissement do |form|
= render partial: 'shared/dossiers/editable_champs/etablissement', locals: { form: form, signature: champ.etablissement.sign }