feat(DossiersController#merci): add download link
This commit is contained in:
parent
5ef29a2f31
commit
ae103e049c
3 changed files with 27 additions and 21 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue