2018-04-13 16:56:00 +02:00
|
|
|
module NewAdministrateur
|
|
|
|
class ProceduresController < AdministrateurController
|
2019-02-06 18:19:27 +01:00
|
|
|
before_action :retrieve_procedure, only: [:champs, :annotations]
|
|
|
|
before_action :procedure_locked?, only: [:champs, :annotations]
|
2019-01-17 15:15:46 +01:00
|
|
|
|
2018-04-13 16:56:00 +02:00
|
|
|
def apercu
|
|
|
|
@dossier = procedure_without_control.new_dossier
|
2018-04-13 17:29:34 +02:00
|
|
|
@tab = apercu_tab
|
2018-04-13 16:56:00 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2018-04-13 17:29:34 +02:00
|
|
|
def apercu_tab
|
|
|
|
params[:tab] || 'dossier'
|
|
|
|
end
|
|
|
|
|
2018-04-13 16:56:00 +02:00
|
|
|
def procedure_without_control
|
|
|
|
Procedure.find(params[:id])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|