feat(administrateur/procedure#create): allow admin to add a lien to the DPO, allow user to consult link to dpo. enhance spec on _procedure_footer.html
Update spec/views/users/_procedure_footer.html.haml_spec.rb Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
This commit is contained in:
parent
c19222a994
commit
be090a1bec
14 changed files with 149 additions and 17 deletions
|
@ -57,6 +57,13 @@
|
|||
= f.label :deliberation, 'Importer le texte'
|
||||
= text_upload_and_render f, @procedure.deliberation
|
||||
|
||||
%h3.header-subsection
|
||||
RGPD
|
||||
%p.notice
|
||||
Pour certaines démarches, veuillez indiquer soit un mail le mail de contact de votre délégué à la protection des données, soit un lien web pointant vers les informations
|
||||
|
||||
= f.label :lien_dpo, 'Lien ou email pour contacter le Délégué à la Protection des Données (DPO)'
|
||||
= f.text_field :lien_dpo, class: 'form-control'
|
||||
%h3.header-subsection Notice explicative de la démarche
|
||||
|
||||
%p.notice
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- if service.present?
|
||||
.footer-row.footer-columns
|
||||
.footer-column
|
||||
%p.footer-header Cette démarche est gérée par :
|
||||
%p.footer-header= I18n.t('users.procedure_footer.managed_by.header')
|
||||
%ul
|
||||
%li
|
||||
= service.nom
|
||||
|
@ -14,46 +14,49 @@
|
|||
= string_to_html(service.adresse, wrapper_tag = 'span')
|
||||
|
||||
.footer-column
|
||||
%p.footer-header Poser une question sur votre dossier :
|
||||
%p.footer-header= I18n.t('users.procedure_footer.contact.header')
|
||||
%ul
|
||||
%li
|
||||
- if dossier.present? && dossier.messagerie_available?
|
||||
Directement
|
||||
= link_to "par la messagerie", messagerie_dossier_path(dossier)
|
||||
= I18n.t('users.procedure_footer.contact.in_app_mail.prefix')
|
||||
= link_to I18n.t('users.procedure_footer.contact.in_app_mail.link'), messagerie_dossier_path(dossier)
|
||||
- else
|
||||
Par email :
|
||||
= I18n.t('users.procedure_footer.contact.email.prefix')
|
||||
= link_to service.email, "mailto:#{service.email}"
|
||||
|
||||
- if service.telephone.present?
|
||||
%li
|
||||
Par téléphone :
|
||||
= I18n.t('users.procedure_footer.contact.phone.prefix')
|
||||
= link_to service.telephone, service.telephone_url
|
||||
|
||||
%li
|
||||
- horaires = "Horaires : #{formatted_horaires(service.horaires)}"
|
||||
- horaires = "#{I18n.t('users.procedure_footer.contact.schedule.prefix')}#{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)
|
||||
= I18n.t('users.procedure_footer.contact.stats.prefix')
|
||||
= link_to I18n.t('users.procedure_footer.contact.stats.cta'), statistiques_path(procedure.path)
|
||||
|
||||
|
||||
- politiques = politiques_conservation_de_donnees(procedure)
|
||||
- if politiques.present?
|
||||
.footer-column
|
||||
%p.footer-header Conservation des données :
|
||||
%p.footer-header= I18n.t('users.procedure_footer.legals.header')
|
||||
%ul
|
||||
- politiques.each do |politique|
|
||||
%li= politique
|
||||
%p.mt-2.footer-header Cadre juridique :
|
||||
%ul
|
||||
- if procedure.deliberation.attached?
|
||||
%li
|
||||
= link_to url_for(procedure.deliberation), target: '_blank', rel: 'noopener' do
|
||||
= "Texte cadrant la demande d'information"
|
||||
= I18n.t("users.procedure_footer.legals.terms")
|
||||
- else
|
||||
%li
|
||||
= link_to "Texte juridique la demande d'information", procedure.cadre_juridique, target: '_blank', rel: 'noopener'
|
||||
= link_to I18n.t("users.procedure_footer.legals.terms"), procedure.cadre_juridique, target: '_blank', rel: 'noopener'
|
||||
|
||||
- if procedure.lien_dpo.present?
|
||||
%li
|
||||
= link_to url_or_email_to_lien_dpo(procedure), target: '_blank', rel: 'noopener' do
|
||||
= I18n.t("users.procedure_footer.legals.dpo")
|
||||
|
||||
= render partial: 'users/general_footer_row', locals: { dossier: dossier }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue