Merge pull request #10497 from mfo/US/download-dossier-on-merci

Amélioration: ETQ usager, je souhaite pouvoir télécharger mon dossier sur la page de confirmation de dépôt
This commit is contained in:
mfo 2024-06-11 07:11:25 +00:00 committed by GitHub
commit 080a818164
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 21 deletions

View file

@ -1,26 +1,30 @@
.merci.text-center.mb-7
.container
= image_tag('user/envoi-dossier.svg', alt: '', class: 'mt-8')
%h1.mt-4.mb-3.mx-0= t('views.users.dossiers.merci.thanks')
%h2.send.m-2.text-lg
= t('views.users.dossiers.merci.dossier_send_l1')
%strong= procedure.libelle
= t('views.users.dossiers.merci.dossier_send_l2')
%p.m-2
= t('views.users.dossiers.merci.dossier_acces_l1')
%strong= t('views.users.dossiers.merci.dossier_acces_l2')
%p.m-2
= t('views.users.dossiers.merci.dossier_edit_l1')
- if !dossier&.read_only? && !procedure.declarative_accepte? && !procedure.sva_svr_enabled?
%strong= t('views.users.dossiers.merci.dossier_edit_l2')
= t('views.users.dossiers.merci.dossier_edit_l3')
%strong= t('views.users.dossiers.merci.dossier_edit_l4')
- if procedure.active_dossier_submitted_message
%p.m-2= procedure.active_dossier_submitted_message.message_on_submit_by_usager
.fr-container
.fr-grid-row.fr-col-offset-md-2.fr-col-md-8
.fr-col-12
= image_tag('user/envoi-dossier.svg', alt: '', class: 'mt-8')
%h1.fr-mt-4w.fr-mb-3w.mx-0= t('views.users.dossiers.merci.thanks')
%h2.send.fr-m-2w.text-lg
= t('views.users.dossiers.merci.dossier_send_l1')
%strong= procedure.libelle
= t('views.users.dossiers.merci.dossier_send_l2')
%p.fr-m-2w
= t('views.users.dossiers.merci.dossier_acces_l1')
%strong= t('views.users.dossiers.merci.dossier_acces_l2')
%p.fr-m-2w
= t('views.users.dossiers.merci.dossier_edit_l1')
- if !dossier&.read_only? && !procedure.declarative_accepte? && !procedure.sva_svr_enabled?
%strong= t('views.users.dossiers.merci.dossier_edit_l2')
= t('views.users.dossiers.merci.dossier_edit_l3')
%strong= t('views.users.dossiers.merci.dossier_edit_l4')
- if procedure.active_dossier_submitted_message
%p.fr-m-2= procedure.active_dossier_submitted_message.message_on_submit_by_usager
%p.justify-center.flex.fr-mb-5w.fr-mt-2w
= link_to "#{t('views.users.dossiers.merci.download_dossier')} (PDF)", dossier_path(dossier, format: :pdf), download: "Mon dossier", target: "_blank", rel: "noopener", title: t('views.users.dossiers.show.header.print_dossier'), class: 'fr-btn fr-btn--secondary fr-mx-2w fr-btn--icon-left fr-icon-download-line'
= link_to t('views.users.dossiers.merci.acces_dossier'), dossier ? dossier_path(dossier) : "#dossier" , class: 'fr-btn fr-mx-2w'
.flex.column.align-center
= link_to t('views.users.dossiers.merci.acces_dossier'), dossier ? dossier_path(dossier) : "#dossier" , class: 'fr-btn fr-btn--xl fr-mt-5w'
= link_to t('views.users.dossiers.merci.submit_dossier'), commencer_url(procedure.path), class: 'fr-btn fr-btn--secondary fr-mt-3w'
%hr.fr-hr
= link_to t('views.users.dossiers.merci.submit_dossier'), commencer_url(procedure.path), class: 'fr-btn fr-btn--secondary fr-mt-2w'
.monavis
!= procedure.monavis_embed

View file

@ -444,6 +444,7 @@ en:
dossier_edit_l2: edit it
dossier_edit_l3: and
dossier_edit_l4: talk with an instructor.
download_dossier: Download your file
acces_dossier: Access your file
submit_dossier: Submit an other file
show:

View file

@ -447,6 +447,7 @@ fr:
dossier_edit_l2: le modifier
dossier_edit_l3: et
dossier_edit_l4: échanger avec un instructeur.
download_dossier: Télécharger mon dossier
acces_dossier: Accéder à votre dossier
submit_dossier: Déposer un autre dossier
show: