corrections après retours
This commit is contained in:
parent
761ee81418
commit
09d479321b
5 changed files with 14 additions and 14 deletions
|
@ -68,7 +68,7 @@ module Experts
|
||||||
end
|
end
|
||||||
|
|
||||||
def expert_procedure
|
def expert_procedure
|
||||||
ExpertsProcedure.find_by(expert_id: current_expert.id, procedure_id: @procedure.id)
|
ExpertsProcedure.find_by!(expert_id: current_expert.id, procedure_id: @procedure.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def notification_settings
|
def notification_settings
|
||||||
|
@ -188,7 +188,7 @@ module Experts
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_procedure
|
def set_procedure
|
||||||
@procedure = current_expert.procedures.find_by(id: params[:procedure_id])
|
@procedure = current_expert.procedures.find(params[:procedure_id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_messaging_allowed
|
def check_messaging_allowed
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
.procedure-header
|
.procedure-header
|
||||||
%h1.fr-h3= procedure_libelle @procedure
|
%h1.fr-h3= procedure_libelle @procedure
|
||||||
|
|
||||||
.container
|
.fr-container
|
||||||
%h1.fr-h3
|
%h1.fr-h3
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
||||||
- c.with_body do
|
- c.with_body do
|
||||||
%p
|
%p
|
||||||
= t('.subtitle', procedure_libelle: @procedure.libelle)
|
= t('.subtitle')
|
||||||
|
|
||||||
%fieldset.fr-fieldset
|
%fieldset.fr-fieldset
|
||||||
%legend.fr-fieldset__legend
|
%legend.fr-fieldset__legend
|
||||||
|
@ -55,6 +55,6 @@
|
||||||
%label.fr-label{ for: 'notify_on_new_message_false' }
|
%label.fr-label{ for: 'notify_on_new_message_false' }
|
||||||
= t('.utils.negative')
|
= t('.utils.negative')
|
||||||
|
|
||||||
.send-wrapper
|
%ul.fr-btns-group.fr-btns-group--inline
|
||||||
= link_to t('.buttons.back_to_procedure', procedure_id: @procedure.id), procedure_expert_avis_index_path(@procedure), class: 'fr-btn fr-btn--secondary fr-mr-2w'
|
%li= form.submit t('.buttons.save'), class: "fr-btn"
|
||||||
= form.submit t('.buttons.save'), class: "fr-btn"
|
%li= link_to t('.buttons.back_to_procedure', procedure_id: @procedure.id), procedure_expert_avis_index_path(@procedure), class: 'fr-btn fr-btn--secondary'
|
||||||
|
|
|
@ -2,13 +2,13 @@ en:
|
||||||
experts:
|
experts:
|
||||||
avis:
|
avis:
|
||||||
procedure:
|
procedure:
|
||||||
management: notification management of the procedure %{procedure_id}
|
management: Notification management of the procedure
|
||||||
notification_settings:
|
notification_settings:
|
||||||
utils:
|
utils:
|
||||||
positive: Yes
|
positive: Yes
|
||||||
negative: No
|
negative: No
|
||||||
title: Email Notifications
|
title: Email Notifications
|
||||||
subtitle: "Configure on this page the notifications you wish to receive by email for: %{procedure_libelle}"
|
subtitle: Configure on this page the notifications you wish to receive by email
|
||||||
for_each_avis_submitted:
|
for_each_avis_submitted:
|
||||||
title: Receive a notification for each avis requested from you
|
title: Receive a notification for each avis requested from you
|
||||||
notice_1: This email alerts you that an avis is requested from you.
|
notice_1: This email alerts you that an avis is requested from you.
|
||||||
|
@ -18,5 +18,5 @@ en:
|
||||||
notice_1: This email notifies you that a new message is available in the messaging system.
|
notice_1: This email notifies you that a new message is available in the messaging system.
|
||||||
notice_2: It is sent every time an instructor or user sends a message.
|
notice_2: It is sent every time an instructor or user sends a message.
|
||||||
buttons:
|
buttons:
|
||||||
back_to_procedure: Return to the procedure notices %{procedure_id}
|
back_to_procedure: Return to the procedure notices
|
||||||
save: Save
|
save: Save
|
||||||
|
|
|
@ -2,13 +2,13 @@ fr:
|
||||||
experts:
|
experts:
|
||||||
avis:
|
avis:
|
||||||
procedure:
|
procedure:
|
||||||
management: gestion des notifications de la démarche %{procedure_id}
|
management: Gestion des notifications de la démarche
|
||||||
notification_settings:
|
notification_settings:
|
||||||
utils:
|
utils:
|
||||||
positive: Oui
|
positive: Oui
|
||||||
negative: Non
|
negative: Non
|
||||||
title: Notifications par email
|
title: Notifications par email
|
||||||
subtitle: "Configurez sur cette page les notifications que vous souhaitez recevoir par email pour : %{procedure_libelle}"
|
subtitle: Configurez sur cette page les notifications que vous souhaitez recevoir par email
|
||||||
for_each_avis_submitted:
|
for_each_avis_submitted:
|
||||||
title: Recevoir une notification à chaque avis qui vous est demandé
|
title: Recevoir une notification à chaque avis qui vous est demandé
|
||||||
notice_1: Cet email vous signale qu'un avis vous est demandé.
|
notice_1: Cet email vous signale qu'un avis vous est demandé.
|
||||||
|
@ -18,5 +18,5 @@ fr:
|
||||||
notice_1: Cet email vous signale qu'un nouveau message est disponible dans la messagerie.
|
notice_1: Cet email vous signale qu'un nouveau message est disponible dans la messagerie.
|
||||||
notice_2: Il est envoyé à chaque fois qu’un instructeur ou usager envoie un message.
|
notice_2: Il est envoyé à chaque fois qu’un instructeur ou usager envoie un message.
|
||||||
buttons:
|
buttons:
|
||||||
back_to_procedure: Revenir sur les avis de la démarche %{procedure_id}
|
back_to_procedure: Revenir sur les avis de la démarche
|
||||||
save: Enregistrer
|
save: Enregistrer
|
||||||
|
|
|
@ -1232,7 +1232,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_16_065520) do
|
||||||
add_foreign_key "dossiers", "groupe_instructeurs"
|
add_foreign_key "dossiers", "groupe_instructeurs"
|
||||||
add_foreign_key "dossiers", "procedure_revisions", column: "revision_id"
|
add_foreign_key "dossiers", "procedure_revisions", column: "revision_id"
|
||||||
add_foreign_key "dossiers", "users"
|
add_foreign_key "dossiers", "users"
|
||||||
add_foreign_key "etablissements", "dossiers"
|
add_foreign_key "etablissements", "dossiers"
|
||||||
add_foreign_key "experts", "users"
|
add_foreign_key "experts", "users"
|
||||||
add_foreign_key "experts_procedures", "experts"
|
add_foreign_key "experts_procedures", "experts"
|
||||||
add_foreign_key "experts_procedures", "procedures"
|
add_foreign_key "experts_procedures", "procedures"
|
||||||
|
|
Loading…
Reference in a new issue