ajout du bouton pour telecharger un pdf vide
This commit is contained in:
parent
8c44133fd1
commit
90a0879d71
2 changed files with 12 additions and 1 deletions
|
@ -40,3 +40,14 @@
|
||||||
%h2.huge-title Vous avez déjà des dossiers pour cette démarche
|
%h2.huge-title Vous avez déjà des dossiers pour cette démarche
|
||||||
= link_to 'Voir mes dossiers en cours', dossiers_path, class: ['button large expand primary']
|
= link_to 'Voir mes dossiers en cours', dossiers_path, class: ['button large expand primary']
|
||||||
= link_to 'Commencer un nouveau dossier', url_for_new_dossier(@procedure), class: ['button large expand']
|
= link_to 'Commencer un nouveau dossier', url_for_new_dossier(@procedure), class: ['button large expand']
|
||||||
|
|
||||||
|
- pdf_link = commencer_dossier_vide_path(path: @procedure.path, format: :pdf)
|
||||||
|
- if @procedure.brouillon?
|
||||||
|
- pdf_link = commencer_dossier_vide_test_path(path: @procedure.path, format: :pdf)
|
||||||
|
%hr
|
||||||
|
%h2.huge-title Effectuer une demande papier
|
||||||
|
%p
|
||||||
|
Vous souhaitez effectuer une demande par papier ? Vous pouvez télécharger un dossier vide au format PDF,
|
||||||
|
et l'envoyer à l’administration concernée.
|
||||||
|
%br
|
||||||
|
= link_to 'Télécharger un dossier vide au format PDF', pdf_link, class: ['button large expand']
|
||||||
|
|
|
@ -245,7 +245,7 @@ Rails.application.routes.draw do
|
||||||
get '/test/:path/dossier_vide', action: 'dossier_vide_pdf_test', as: :dossier_vide_test
|
get '/test/:path/dossier_vide', action: 'dossier_vide_pdf_test', as: :dossier_vide_test
|
||||||
get '/test/:path', action: 'commencer_test', as: :test
|
get '/test/:path', action: 'commencer_test', as: :test
|
||||||
get '/:path', action: 'commencer'
|
get '/:path', action: 'commencer'
|
||||||
get '/:path/dossier_vide', action: 'dossier_vide_pdf'
|
get '/:path/dossier_vide', action: 'dossier_vide_pdf', as: :dossier_vide
|
||||||
get '/:path/sign_in', action: 'sign_in', as: :sign_in
|
get '/:path/sign_in', action: 'sign_in', as: :sign_in
|
||||||
get '/:path/sign_up', action: 'sign_up', as: :sign_up
|
get '/:path/sign_up', action: 'sign_up', as: :sign_up
|
||||||
get '/:path/france_connect', action: 'france_connect', as: :france_connect
|
get '/:path/france_connect', action: 'france_connect', as: :france_connect
|
||||||
|
|
Loading…
Reference in a new issue