demarches-normaliennes/app/views/layouts/mailers/_service_footer.html.haml
2024-02-07 17:06:31 +01:00

35 lines
1.4 KiB
Text

%strong
= t('.do_not_reply')
- if dossier.present? && dossier.messagerie_available?
= t('.contact_admin')
= succeed '.' do
= link_to t('.file_messagerie'), messagerie_dossier_url(dossier), target: '_blank', rel: 'noopener'
- service = dossier&.service || dossier.procedure.service
- if service.present?
%table{ width: "100%", border: "0", cellspacing: "0", cellpadding: "0", style: "cursor:auto;color:#55575d;font-family:Helvetica, Arial, sans-serif;font-size:11px;line-height:22px;text-align:left;" }
%tr
%td{ width: "50%", valign: "top" }
%p
%strong
= t('.procedure_management')
= service.nom
= service.adresse
%p
= t('.email_sent_to')
%br
= dossier.user_email_for(:notification)
%td{ width: "50%", valign: "top", style: "padding-left:10px;" }
%p
%strong
= t('.ask_question')
%br
- if dossier.present? && dossier.messagerie_available?
= link_to t('.by_messagerie'), messagerie_dossier_url(dossier), target: '_blank', rel: 'noopener'
- else
= t('.by_email')
= link_to service.email, "mailto:#{service.email}"
- if service.telephone_url.present?
%br= t('.by_phone')
= link_to service.telephone, service.telephone_url
%br= "#{t('.schedule')} #{ formatted_horaires(service.horaires) }"