2022-08-12 10:45:04 +02:00
|
|
|
= @form.text_field :value,
|
|
|
|
id: @champ.input_id,
|
|
|
|
aria: { describedby: @champ.describedby_id },
|
|
|
|
placeholder: t(".placeholder"),
|
2023-01-11 15:07:16 +01:00
|
|
|
data: { controller: 'turbo-input', turbo_input_load_on_connect_value: @champ.prefilled? && @champ.value.present? && @champ.etablissement.blank?, turbo_input_url_value: champs_siret_path(@champ.id) },
|
2022-10-17 10:05:59 +02:00
|
|
|
required: @champ.required?,
|
2022-08-12 10:45:04 +02:00
|
|
|
pattern: "[0-9]{14}",
|
|
|
|
title: t(".title"),
|
|
|
|
class: "width-33-desktop",
|
|
|
|
maxlength: 14
|
|
|
|
.spinner.right.hidden
|
|
|
|
.siret-info{ id: dom_id(@champ, :siret_info) }
|
|
|
|
- if @champ.etablissement.present?
|
2022-09-01 12:42:48 +02:00
|
|
|
= render EditableChamp::EtablissementTitreComponent.new(etablissement: @champ.etablissement)
|