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:
commit
54f17ad3c7
30 changed files with 399 additions and 381 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue