Merge pull request #8630 from demarches-simplifiees/harmonize-actions-for-instructeurs

[instructeurs] Uniformiser les actions pour les instructeurs sur la page tableau et dossier
This commit is contained in:
Lisa Durand 2023-03-02 13:28:23 +00:00 committed by GitHub
commit 54f17ad3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 399 additions and 381 deletions

View file

@ -134,7 +134,15 @@ module Instructeurs
end
@dossier = dossier
render :change_state
respond_to do |format|
format.turbo_stream do
render :change_state
end
format.html do
redirect_back(fallback_location: instructeur_procedure_path(procedure))
end
end
end
def repasser_en_construction
@ -146,7 +154,15 @@ module Instructeurs
end
@dossier = dossier
render :change_state
respond_to do |format|
format.turbo_stream do
render :change_state
end
format.html do
redirect_back(fallback_location: instructeur_procedure_path(procedure))
end
end
end
def repasser_en_instruction
@ -158,7 +174,15 @@ module Instructeurs
end
@dossier = dossier
render :change_state
respond_to do |format|
format.turbo_stream do
render :change_state
end
format.html do
redirect_back(fallback_location: instructeur_procedure_path(procedure))
end
end
end
def terminer