2018-04-03 17:53:14 +02:00
|
|
|
= form.text_field :value,
|
2022-01-05 11:44:07 +01:00
|
|
|
id: champ.input_id,
|
|
|
|
aria: { describedby: champ.describedby_id },
|
2022-07-04 18:37:30 +02:00
|
|
|
placeholder: t(".placeholder"),
|
2022-05-03 19:43:49 +02:00
|
|
|
data: { controller: 'turbo-input', turbo_input_url_value: champs_siret_path(champ.id) },
|
2019-03-27 18:56:18 +01:00
|
|
|
required: champ.mandatory?,
|
|
|
|
pattern: "[0-9]{14}",
|
2022-07-11 11:42:59 +02:00
|
|
|
title: t(".title"),
|
|
|
|
class: "width-33-desktop",
|
|
|
|
maxlength: 14
|
2019-08-14 13:11:36 +02:00
|
|
|
.spinner.right.hidden
|
2022-05-03 19:43:49 +02:00
|
|
|
.siret-info{ id: dom_id(champ, :siret_info) }
|
2018-04-03 17:53:14 +02:00
|
|
|
- if champ.etablissement.present?
|
|
|
|
= render partial: 'shared/dossiers/editable_champs/etablissement_titre', locals: { etablissement: champ.etablissement }
|