remove placeholder for siret component

This commit is contained in:
Christophe Robillard 2023-09-25 16:40:33 +02:00
parent ae08f044ed
commit bd3f7eeb38
5 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,3 @@
---
en:
placeholder: "50000123456789"
title: "The SIRET number must have exactly 14 digits"

View file

@ -1,4 +1,3 @@
---
fr:
placeholder: "50000123456789"
title: "Le numéro de SIRET doit comporter exactement 14 chiffres"

View file

@ -1,4 +1,4 @@
= @form.text_field(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, placeholder: t(".placeholder"), 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) }, required: @champ.required?, pattern: "[0-9]{14}", title: t(".title"), class: "width-33-desktop", maxlength: 14))
= @form.text_field(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, 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) }, required: @champ.required?, pattern: "[0-9]{14}", title: t(".title"), class: "width-33-desktop", maxlength: 14))
.siret-info{ id: dom_id(@champ, :siret_info) }
- if @champ.etablissement.present?
= render EditableChamp::EtablissementTitreComponent.new(etablissement: @champ.etablissement)

View file

@ -3,4 +3,4 @@ en:
attributes:
champs/siret_champ:
hints:
value: "Enter 14 digits, no space"
value: "Enter 14 digits, no space. Example : 50000123456789"

View file

@ -3,4 +3,4 @@ fr:
attributes:
champs/siret_champ:
hints:
value: "Saisissez 14 chiffres sans espaces"
value: "Saisissez 14 chiffres sans espaces. Exemple : 50000123456789"