clean(Champ.siret): title not needed

This commit is contained in:
mfo 2024-04-09 17:05:56 +02:00
parent cab3a55f45
commit 36c253edbb
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
3 changed files with 1 additions and 7 deletions

View file

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

View file

@ -1,3 +0,0 @@
---
fr:
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 }, 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}", 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)