demarches-normaliennes/app/views/users/_procedure_footer.html.haml
kara Diaby 66f0fa35f2 layout
2021-06-04 15:29:08 +02:00

50 lines
1.6 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.

%footer.procedure-footer
.container
- service = procedure.service
- if service.present?
.footer-row.footer-columns
.footer-column
%p.footer-header Cette démarche est gérée par :
%ul
%li
= service.nom
%br
= service.organisme
%br
= string_to_html(service.adresse, wrapper_tag = 'span')
.footer-column
%p.footer-header Poser une question sur votre dossier :
%ul
%li
- if dossier.present? && dossier.messagerie_available?
Directement
= link_to "par la messagerie", messagerie_dossier_path(dossier)
- else
Par email :
= link_to service.email, "mailto:#{service.email}"
- if service.telephone.present?
%li
Par téléphone :
= link_to service.telephone, service.telephone_url
%li
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
= simple_format(horaires, {}, wrapper_tag: 'span')
%li
Statistiques :
= link_to "voir les statistiques de la démarche", statistiques_path(procedure.path)
- politiques = politiques_conservation_de_donnees(procedure)
- if politiques.present?
.footer-column
%p.footer-header Conservation des données :
%ul
- politiques.each do |politique|
%li= politique
= render partial: 'users/general_footer_row', locals: { dossier: dossier }