62ee710382
Before there was no way to display the informations about a procedure without having a dossier. Thus an empty dossier was created. Now we can display the informations of a procedure using a @procedure instance variable, so we can move this hack away.
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
%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.brouillon?
|
||
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 : #{ service.horaires.sub(/\S/, &:downcase) }
|
||
|
||
- 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: 'new_user/general_footer_row', locals: { dossier: dossier }
|