correctif(a11y): #8179, quand la messagerie est desactivée. supprime les br et utilise le nouveau mode de rendu pour afficher les horaires saisies par l'administration

This commit is contained in:
Martin 2023-02-22 11:19:24 +01:00 committed by mfo
parent fd203f5bb7
commit 8a44e6a03c
2 changed files with 7 additions and 7 deletions

View file

@ -6,11 +6,11 @@
Pour poser une question sur ce dossier, contactez :
%p
= service.nom
%br
%p
= service.organisme
%br
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
= simple_format(horaires)
- if service.horaires.present?
= render SimpleFormatComponent.new("Horaires : #{formatted_horaires(service.horaires)}")
%p
= mail_to service.email,
service.email,

View file

@ -19,9 +19,9 @@
= link_to service.telephone_url, class: 'fr-footer__top-link' do
%p
= I18n.t('users.procedure_footer.contact.phone.link', service_telephone: service.telephone)
- if service.horaires.present?
%p
= horaires
- if service.horaires.present?
%p
= horaires
%li
= link_to I18n.t('users.procedure_footer.contact.stats.link'), statistiques_path(procedure.path), class: 'fr-footer__top-link', rel: 'noopener'