528b7ec3f8
used for the `required` html attribute. It check visibility to avoid hidden required input which prevent the form from being sent.
14 lines
548 B
Text
14 lines
548 B
Text
= @form.text_field :value,
|
|
id: @champ.input_id,
|
|
aria: { describedby: @champ.describedby_id },
|
|
placeholder: t(".placeholder"),
|
|
data: { controller: 'turbo-input', turbo_input_url_value: champs_siret_path(@champ.id) },
|
|
required: @champ.required?,
|
|
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?
|
|
= render EditableChamp::EtablissementTitreComponent.new(etablissement: @champ.etablissement)
|