demarches-normaliennes/app/views/users/_procedure_footer.html.haml
Nicolas Bouilleaud bd47bf2691 Disable Messagerie in archived Dossiers and procedures
* Use the existing Dossier#messagerie_available? method
* Raise when attempting to build a Commentaire if not messagerie_available?
* Disable the Messagerie form if not messagerie_available?
* Add tests :)
* Tweak the Horaires formatting while we’re here.
2019-07-01 09:39:39 +02:00

42 lines
1.4 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?
%ul.footer-row.footer-columns
%li.footer-column
%h3.footer-header Cette démarche est gérée par :
%p
= service.nom
%br
= service.organisme
%br
= string_to_html(service.adresse)
%li.footer-column
%h3.footer-header Poser une question sur votre dossier :
%p
- 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}"
%p
Par téléphone :
%a{ href: "tel:#{service.telephone}" }= service.telephone
%p
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
= simple_format(horaires)
- politiques = politiques_conservation_de_donnees(procedure)
- if politiques.present?
%li.footer-column
%h3.footer-header Conservation des données :
- politiques.each do |politique|
%p= politique
.footer-row.footer-bottom-line
= render partial: 'users/general_footer_row', locals: { dossier: dossier }