fix(attestation): marianne label until 5 lines because of Economie & Finances long name

This commit is contained in:
Colin Darie 2024-02-19 16:22:40 +01:00
parent 3c22f4ea48
commit 4a45fdb3d6
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -44,8 +44,8 @@
Je souhaite générer une attestation à la charte de létat (logo avec Marianne) 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'} } .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| = 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. 3 lignes maximum" } - c.with_hint { "Exemple: Ministère de la Mer. 5 lignes maximum" }
.fr-fieldset__element{ data: { attestation_target: 'logoAttachmentFieldset' } } .fr-fieldset__element{ data: { attestation_target: 'logoAttachmentFieldset' } }
%label.fr-label{ for: field_id(@attestation_template, :logo) } %label.fr-label{ for: field_id(@attestation_template, :logo) }