Rename gestionnaire in code to instructeur
This commit is contained in:
parent
6902f84b85
commit
3fde2a6f70
175 changed files with 1162 additions and 1162 deletions
|
@ -86,7 +86,7 @@ module ApplicationHelper
|
|||
|
||||
def current_email
|
||||
current_user&.email ||
|
||||
current_gestionnaire&.email ||
|
||||
current_instructeur&.email ||
|
||||
current_administrateur&.email
|
||||
end
|
||||
|
||||
|
@ -104,8 +104,8 @@ module ApplicationHelper
|
|||
|
||||
def root_path_for_profile(nav_bar_profile)
|
||||
case nav_bar_profile
|
||||
when :gestionnaire
|
||||
gestionnaire_procedures_path
|
||||
when :instructeur
|
||||
instructeur_procedures_path
|
||||
when :user
|
||||
dossiers_path
|
||||
else
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
module DossierLinkHelper
|
||||
def dossier_linked_path(user, dossier)
|
||||
if user.is_a?(Gestionnaire)
|
||||
if dossier.procedure.gestionnaires.include?(user)
|
||||
gestionnaire_dossier_path(dossier.procedure, dossier)
|
||||
if user.is_a?(Instructeur)
|
||||
if dossier.procedure.instructeurs.include?(user)
|
||||
instructeur_dossier_path(dossier.procedure, dossier)
|
||||
else
|
||||
avis = dossier.avis.find_by(gestionnaire: user)
|
||||
avis = dossier.avis.find_by(instructeur: user)
|
||||
if avis.present?
|
||||
gestionnaire_avis_path(avis)
|
||||
instructeur_avis_path(avis)
|
||||
end
|
||||
end
|
||||
elsif user.owns_or_invite?(dossier)
|
||||
|
|
|
@ -55,7 +55,7 @@ module ProcedureHelper
|
|||
end
|
||||
|
||||
def procedure_dossiers_download_path(procedure, format:, version:)
|
||||
download_dossiers_gestionnaire_procedure_path(format: format,
|
||||
download_dossiers_instructeur_procedure_path(format: format,
|
||||
procedure_id: procedure.id,
|
||||
tables: [:etablissements],
|
||||
version: version)
|
||||
|
|
|
@ -2,8 +2,8 @@ module TableauDeBordHelper
|
|||
def tableau_de_bord_helper_path
|
||||
if current_administrateur.present?
|
||||
admin_procedures_path
|
||||
elsif current_gestionnaire.present?
|
||||
gestionnaire_procedures_path
|
||||
elsif current_instructeur.present?
|
||||
instructeur_procedures_path
|
||||
else
|
||||
dossiers_path
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue