From 36c253edbb86b95d7c5ea440c5484bd12f504454 Mon Sep 17 00:00:00 2001 From: mfo Date: Tue, 9 Apr 2024 17:05:56 +0200 Subject: [PATCH] clean(Champ.siret): title not needed --- .../editable_champ/siret_component/siret_component.en.yml | 3 --- .../editable_champ/siret_component/siret_component.fr.yml | 3 --- .../editable_champ/siret_component/siret_component.html.haml | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 app/components/editable_champ/siret_component/siret_component.en.yml delete mode 100644 app/components/editable_champ/siret_component/siret_component.fr.yml diff --git a/app/components/editable_champ/siret_component/siret_component.en.yml b/app/components/editable_champ/siret_component/siret_component.en.yml deleted file mode 100644 index 7d0cdc092..000000000 --- a/app/components/editable_champ/siret_component/siret_component.en.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -en: - title: "The SIRET number must have exactly 14 digits" diff --git a/app/components/editable_champ/siret_component/siret_component.fr.yml b/app/components/editable_champ/siret_component/siret_component.fr.yml deleted file mode 100644 index 6231d97ad..000000000 --- a/app/components/editable_champ/siret_component/siret_component.fr.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -fr: - title: "Le numéro de SIRET doit comporter exactement 14 chiffres" diff --git a/app/components/editable_champ/siret_component/siret_component.html.haml b/app/components/editable_champ/siret_component/siret_component.html.haml index 4f052b2f1..ae999e84a 100644 --- a/app/components/editable_champ/siret_component/siret_component.html.haml +++ b/app/components/editable_champ/siret_component/siret_component.html.haml @@ -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)