Procedure Preview: add annotations preview

This commit is contained in:
simon lehericey 2018-04-13 17:29:34 +02:00
parent 366ef2d2b5
commit 48c5d5a917
2 changed files with 26 additions and 5 deletions

View file

@ -2,10 +2,15 @@ module NewAdministrateur
class ProceduresController < AdministrateurController
def apercu
@dossier = procedure_without_control.new_dossier
@tab = apercu_tab
end
private
def apercu_tab
params[:tab] || 'dossier'
end
def procedure_without_control
Procedure.find(params[:id])
end