From da06295191802dcc1d937267cccd8a2105804c54 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 21 Sep 2023 17:58:01 +0200 Subject: [PATCH] chore(attestation): improve groupe instructeurs signature wording Co-Authored-By: Christophe Robillard --- .../_informations.html.haml | 23 +++++++++++-------- .../_signature_form.html.haml | 6 ++++- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/app/views/administrateurs/attestation_templates/_informations.html.haml b/app/views/administrateurs/attestation_templates/_informations.html.haml index fc9fe38b5..139c4ff53 100644 --- a/app/views/administrateurs/attestation_templates/_informations.html.haml +++ b/app/views/administrateurs/attestation_templates/_informations.html.haml @@ -24,19 +24,22 @@ = tag[:description] %h3.header-subsection Logo de l'attestation +%p.fr-text--sm.fr-text-mention--grey.fr-mb-0 + Dimensions conseillées : au minimum 500px de largeur ou de hauteur. = render Attachment::EditComponent.new(attached_file: @attestation_template.logo, direct_upload: false) -%p.notice - Formats acceptés : JPG / JPEG / PNG. - %br - Dimensions conseillées : au minimum 500 px de largeur ou de hauteur, poids maximum : 0,5 Mo. -%h3.header-subsection Tampon de l'attestation +%h3.header-subsection.fr-mt-5w Tampon de l'attestation +%p.fr-text--sm.fr-text-mention--grey.fr-mb-0 + Dimensions conseillées : au minimum 500px de largeur ou de hauteur. = render Attachment::EditComponent.new(attached_file: @attestation_template.signature, direct_upload: false) -%p.notice - Formats acceptés : JPG / JPEG / PNG. - %br - Dimensions conseillées : au minimum 500 px de largeur ou de hauteur, poids maximum : 0,5 Mo. -= render Dsfr::InputComponent.new(form: f, attribute: :footer, input_type: :text_field, opts: { maxlength: 190, size: nil }, required: false) +- if @attestation_template.procedure.routing_enabled? + %p.fr-text--sm.fr-text-mention--grey + À noter : chaque groupe instructeur peut apposer son propre tampon à la place de celui-ci. + + +.fr-mt-4w + = render Dsfr::InputComponent.new(form: f, attribute: :footer, input_type: :text_field, opts: { maxlength: 190, size: nil }, required: false) + diff --git a/app/views/shared/groupe_instructeurs/_signature_form.html.haml b/app/views/shared/groupe_instructeurs/_signature_form.html.haml index f24d80b30..09a8e672b 100644 --- a/app/views/shared/groupe_instructeurs/_signature_form.html.haml +++ b/app/views/shared/groupe_instructeurs/_signature_form.html.haml @@ -3,9 +3,13 @@ = form_with url: { action: :add_signature }, method: :post, html: { multipart: true } do |f| .card-title Tampon de l'attestation + %p.fr-text--sm.fr-text-mention--grey + Vous pouvez apposer sur l’attestation un tampon (ou signature) dédié à ce groupe d’instructeurs. + Si vous n’en fournissez pas, celui de la démarche sera utilisé, le cas échéant. + .fr-upload-group.fr-mb-4w %p.fr-text--sm.fr-text-mention--grey.fr-mb-1w - Dimensions conseillées : au minimum 500 px de largeur ou de hauteur. + Dimensions conseillées : au minimum 500px de largeur ou de hauteur. = render Attachment::EditComponent.new(attached_file: groupe_instructeur.signature, direct_upload: false) .fr-btns-group.fr-btns-group--inline