demarches-normaliennes/app/views/instructeurs/export_templates/_preview.html.haml
simon lehericey 57f698853f
some layouts
2024-07-26 13:34:50 +02:00

33 lines
1.2 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- procedure = export_template.procedure
- dossier = procedure.dossier_for_preview(current_instructeur)
#preview.export-template-preview.fr-p-2w.sticky--top
%h2.fr-h4 Aperçu
- if dossier.nil?
%p.fr-text--sm
Pour générer un aperçu fidèle avec tous les champs et les dates,
= link_to 'créez-vous un dossier', commencer_url(procedure.path), target: '_blank'
et acceptez-le : laperçu lutilisera.
- else
%ul.tree.fr-text--sm
%li
%span.fr-icon-folder-zip-line
#{DownloadableFileService::EXPORT_DIRNAME}/
%li
%ul
%li
%span.fr-icon-folder-line
#{export_template.dossier_folder.path(dossier)}/
%ul
- if export_template.export_pdf.enabled?
%li
%span.fr-icon-pdf-2-line
#{export_template.export_pdf.path(dossier)}.pdf
- procedure.exportables_pieces_jointes.each do |tdc|
- export_pj = export_template.pj(tdc)
- if export_pj.enabled?
%li
%span.fr-icon-file-image-line
#{export_pj.path(dossier)}-1.jpg