From 4a45fdb3d6097487a67ad4beadb45b61622d7f76 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 19 Feb 2024 16:22:40 +0100 Subject: [PATCH] fix(attestation): marianne label until 5 lines because of Economie & Finances long name --- .../administrateurs/attestation_template_v2s/edit.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/administrateurs/attestation_template_v2s/edit.html.haml b/app/views/administrateurs/attestation_template_v2s/edit.html.haml index 541c95df7..eb4f09f46 100644 --- a/app/views/administrateurs/attestation_template_v2s/edit.html.haml +++ b/app/views/administrateurs/attestation_template_v2s/edit.html.haml @@ -44,8 +44,8 @@ Je souhaite générer une attestation à la charte de l’état (logo avec Marianne) .fr-fieldset__element{ class: class_names("hidden" => !@attestation_template.official_layout?), data: { "attestation-target": 'logoMarianneLabelFieldset'} } - = render Dsfr::InputComponent.new(form: f, attribute: :label_logo, input_type: :text_area, required: @attestation_template.official_layout?, opts: { rows: 3, data: { controller: :textarea, textarea_max_rows_value: 3 } }) do |c| - - c.with_hint { "Exemple: Ministère de la Mer. 3 lignes maximum" } + = render Dsfr::InputComponent.new(form: f, attribute: :label_logo, input_type: :text_area, required: @attestation_template.official_layout?, opts: { rows: 3, data: { controller: :textarea, textarea_max_rows_value: 5 } }) do |c| + - c.with_hint { "Exemple: Ministère de la Mer. 5 lignes maximum" } .fr-fieldset__element{ data: { attestation_target: 'logoAttachmentFieldset' } } %label.fr-label{ for: field_id(@attestation_template, :logo) }