gestion des notifications instructeurs au DSFR
This commit is contained in:
parent
086cc1537b
commit
84890f954b
1 changed files with 80 additions and 72 deletions
|
@ -4,8 +4,8 @@
|
||||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||||
['Notifications']] }
|
['Notifications']] }
|
||||||
|
|
||||||
.container
|
.fr-container
|
||||||
%h1
|
%h1.fr-h3
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
= form_for @assign_to, url: update_email_notifications_instructeur_procedure_path(@procedure), html: { class: 'form' } do |form|
|
= form_for @assign_to, url: update_email_notifications_instructeur_procedure_path(@procedure), html: { class: 'form' } do |form|
|
||||||
|
@ -14,82 +14,90 @@
|
||||||
%p
|
%p
|
||||||
= t('.subtitle')
|
= t('.subtitle')
|
||||||
|
|
||||||
= form.label :email_notification, t('.for_each_file_submitted.title')
|
%fieldset.fr-fieldset
|
||||||
|
%legend.fr-fieldset__legend
|
||||||
|
= t(".for_each_file_submitted.title")
|
||||||
|
%span.fr-hint-text= t('.for_each_file_submitted.notice_1')
|
||||||
|
%span.fr-hint-text= t('.for_each_file_submitted.notice_2')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :instant_email_dossier_notifications_enabled, true, id: 'instant_email_dossier_notifications_true'
|
||||||
|
%label.fr-label{ for: 'instant_email_dossier_notifications_true' }
|
||||||
|
= t('.utils.positive')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :instant_email_dossier_notifications_enabled, false, id: 'instant_email_dossier_notifications_false'
|
||||||
|
%label.fr-label{ for: 'instant_email_dossier_notifications_false' }
|
||||||
|
= t('.utils.negative')
|
||||||
|
|
||||||
%p.notice
|
|
||||||
= t('.for_each_file_submitted.notice_1')
|
|
||||||
%p.notice
|
|
||||||
= t('.for_each_file_submitted.notice_2')
|
|
||||||
|
|
||||||
.radios
|
%fieldset.fr-fieldset
|
||||||
%label
|
%legend.fr-fieldset__legend
|
||||||
= form.radio_button :instant_email_dossier_notifications_enabled, true
|
= t(".for_each_message_submitted.title")
|
||||||
= t('.utils.positive')
|
%span.fr-hint-text= t('.for_each_message_submitted.notice_1')
|
||||||
|
%span.fr-hint-text= t('.for_each_message_submitted.notice_2')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :instant_email_message_notifications_enabled, true, id: 'instant_email_message_notifications_true'
|
||||||
|
%label.fr-label{ for: 'instant_email_message_notifications_true' }
|
||||||
|
= t('.utils.positive')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :instant_email_message_notifications_enabled, false, id: 'instant_email_message_notifications_false'
|
||||||
|
%label.fr-label{ for: 'instant_email_message_notifications_false' }
|
||||||
|
= t('.utils.negative')
|
||||||
|
|
||||||
%label
|
|
||||||
= form.radio_button :instant_email_dossier_notifications_enabled, false
|
|
||||||
= t('.utils.negative')
|
|
||||||
|
|
||||||
= form.label :email_notification, t('.for_each_message_submitted.title')
|
%fieldset.fr-fieldset
|
||||||
|
%legend.fr-fieldset__legend
|
||||||
|
= t(".daily_notifications.title")
|
||||||
|
%span.fr-hint-text= t('.daily_notifications.notice_1')
|
||||||
|
%span.fr-hint-text= t('.daily_notifications.notice_2')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :daily_email_notifications_enabled, true, id: 'daily_email_notifications_true'
|
||||||
|
%label.fr-label{ for: 'daily_email_notifications_true' }
|
||||||
|
= t('.utils.positive')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :daily_email_notifications_enabled, false, id: 'daily_email_notifications_false'
|
||||||
|
%label.fr-label{ for: 'daily_email_notifications_false' }
|
||||||
|
= t('.utils.negative')
|
||||||
|
|
||||||
%p.notice
|
%fieldset.fr-fieldset
|
||||||
= t('.for_each_message_submitted.notice_1')
|
%legend.fr-fieldset__legend
|
||||||
%p.notice
|
= t(".hebdo_recap.title")
|
||||||
= t('.for_each_message_submitted.notice_2')
|
%span.fr-hint-text= t('.hebdo_recap.notice_1')
|
||||||
|
%span.fr-hint-text= t('.hebdo_recap.notice_2')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :weekly_email_notifications_enabled, true, id: 'weekly_email_notifications_true'
|
||||||
|
%label.fr-label{ for: 'weekly_email_notifications_true' }
|
||||||
|
= t('.utils.positive')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :weekly_email_notifications_enabled, false, id: 'weekly_email_notifications_false'
|
||||||
|
%label.fr-label{ for: 'weekly_email_notifications_false' }
|
||||||
|
= t('.utils.negative')
|
||||||
|
|
||||||
.radios
|
|
||||||
%label
|
|
||||||
= form.radio_button :instant_email_message_notifications_enabled, true
|
|
||||||
= t('.utils.positive')
|
|
||||||
|
|
||||||
%label
|
%fieldset.fr-fieldset
|
||||||
= form.radio_button :instant_email_message_notifications_enabled, false
|
%legend.fr-fieldset__legend
|
||||||
= t('.utils.negative')
|
= t(".avis_notifications.title")
|
||||||
|
%span.fr-hint-text= t('.avis_notifications.notice_1')
|
||||||
|
%span.fr-hint-text= t('.avis_notifications.notice_2')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :instant_expert_avis_email_notifications_enabled, true, id: 'instant_expert_avis_email_notifications_true'
|
||||||
|
%label.fr-label{ for: 'instant_expert_avis_email_notifications_true' }
|
||||||
|
= t('.utils.positive')
|
||||||
|
.fr-fieldset__element.fr-fieldset__element--inline
|
||||||
|
.fr-radio-group
|
||||||
|
= form.radio_button :instant_expert_avis_email_notifications_enabled, false, id: 'instant_expert_avis_email_notifications_false'
|
||||||
|
%label.fr-label{ for: 'instant_expert_avis_email_notifications_false' }
|
||||||
|
= t('.utils.negative')
|
||||||
|
|
||||||
= form.label :email_notification, t('.daily_notifications.title')
|
|
||||||
|
|
||||||
%p.notice
|
%ul.fr-btns-group.fr-btns-group--inline
|
||||||
= t('.daily_notifications.notice_1')
|
%li= form.submit t('.buttons.save'), class: "fr-btn"
|
||||||
%p.notice
|
%li= link_to t('.buttons.back_to_procedure'), instructeur_procedure_path(@procedure), class: 'fr-btn fr-btn--secondary fr-mr-2w'
|
||||||
= t('.daily_notifications.notice_2')
|
|
||||||
|
|
||||||
.radios
|
|
||||||
%label
|
|
||||||
= form.radio_button :daily_email_notifications_enabled, true
|
|
||||||
= t('.utils.positive')
|
|
||||||
|
|
||||||
%label
|
|
||||||
= form.radio_button :daily_email_notifications_enabled, false
|
|
||||||
= t('.utils.negative')
|
|
||||||
|
|
||||||
= form.label :email_notification, t('.hebdo_recap.title')
|
|
||||||
%p.notice
|
|
||||||
= t('.hebdo_recap.notice_1')
|
|
||||||
%p.notice
|
|
||||||
= t('.hebdo_recap.notice_2')
|
|
||||||
|
|
||||||
.radios
|
|
||||||
%label
|
|
||||||
= form.radio_button :weekly_email_notifications_enabled, true
|
|
||||||
= t('.utils.positive')
|
|
||||||
%label
|
|
||||||
= form.radio_button :weekly_email_notifications_enabled, false
|
|
||||||
= t('.utils.negative')
|
|
||||||
|
|
||||||
= form.label :email_notification, t('.avis_notifications.title')
|
|
||||||
%p.notice
|
|
||||||
= t('.avis_notifications.notice_1')
|
|
||||||
%p.notice
|
|
||||||
= t('.avis_notifications.notice_2')
|
|
||||||
|
|
||||||
.radios
|
|
||||||
%label
|
|
||||||
= form.radio_button :instant_expert_avis_email_notifications_enabled, true
|
|
||||||
= t('.utils.positive')
|
|
||||||
%label
|
|
||||||
= form.radio_button :instant_expert_avis_email_notifications_enabled, false
|
|
||||||
= t('.utils.negative')
|
|
||||||
|
|
||||||
.send-wrapper
|
|
||||||
= link_to t('.buttons.back_to_procedure'), instructeur_procedure_path(@procedure), class: 'fr-btn fr-btn--secondary fr-mr-2w'
|
|
||||||
= form.submit t('.buttons.save'), class: "fr-btn"
|
|
||||||
|
|
Loading…
Reference in a new issue