[Fix #1409] Plug identite new design to current workflow

This commit is contained in:
Mathieu Magnin 2018-02-12 15:55:51 +01:00
parent 9627ba43c0
commit 3e5621f633
4 changed files with 34 additions and 25 deletions

View file

@ -23,7 +23,7 @@ module NewUser
if @dossier.procedure.module_api_carto.use_api_carto
redirect_to users_dossier_carte_path(@dossier.id)
else
redirect_to identite_dossier_path(@dossier) # Simon should replace this with dossier_path when done
redirect_to users_dossier_description_path(@dossier) # Simon should replace this with dossier_path when done
end
else
flash.now.alert = @dossier.errors.full_messages

View file

@ -73,7 +73,11 @@ class Users::DossiersController < UsersController
update_current_user_siret! siret if siret.present?
redirect_to users_dossier_path(id: dossier.id)
if dossier.procedure.for_individual
redirect_to identite_dossier_path(dossier)
else
redirect_to users_dossier_path(id: dossier.id)
end
rescue ActiveRecord::RecordNotFound
error_procedure
end