From d8b7aa14f64eb84edf84d13b958be309b1435b4f Mon Sep 17 00:00:00 2001 From: mfo Date: Tue, 9 Apr 2024 16:43:59 +0200 Subject: [PATCH] feat(Champ.rna): do not use title attribute on champ.rna Co-authored-by: Corinne Durrmeyer --- .../editable_champ/rna_component/rna_component.en.yml | 3 --- .../editable_champ/rna_component/rna_component.fr.yml | 3 --- .../editable_champ/rna_component/rna_component.html.haml | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 app/components/editable_champ/rna_component/rna_component.en.yml delete mode 100644 app/components/editable_champ/rna_component/rna_component.fr.yml diff --git a/app/components/editable_champ/rna_component/rna_component.en.yml b/app/components/editable_champ/rna_component/rna_component.en.yml deleted file mode 100644 index 464a41d85..000000000 --- a/app/components/editable_champ/rna_component/rna_component.en.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -en: - title: "The RNA number must begin with a capital W followed by 9 digits" diff --git a/app/components/editable_champ/rna_component/rna_component.fr.yml b/app/components/editable_champ/rna_component/rna_component.fr.yml deleted file mode 100644 index 96749b3de..000000000 --- a/app/components/editable_champ/rna_component/rna_component.fr.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -fr: - title: "Le numéro RNA doit commencer par un W majuscule suivi de 9 chiffres et lettres" diff --git a/app/components/editable_champ/rna_component/rna_component.html.haml b/app/components/editable_champ/rna_component/rna_component.html.haml index ee1a5eba2..0543591ad 100644 --- a/app/components/editable_champ/rna_component/rna_component.html.haml +++ b/app/components/editable_champ/rna_component/rna_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.data.blank?, turbo_input_url_value: champs_rna_path(@champ.id) }, required: @champ.required?, pattern: "W[0-9]{9}", title: t(".title"), class: "width-33-desktop", maxlength: 10)) += @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.data.blank?, turbo_input_url_value: champs_rna_path(@champ.id) }, required: @champ.required?, pattern: "W[0-9]{9}", class: "width-33-desktop", maxlength: 10)) .rna-info{ id: dom_id(@champ, :rna_info) } = render 'shared/champs/rna/association', champ: @champ, error: nil