demarches-normaliennes/app/controllers/new_administrateur/procedures_controller.rb

22 lines
481 B
Ruby
Raw Normal View History

2018-04-13 16:56:00 +02:00
module NewAdministrateur
class ProceduresController < AdministrateurController
before_action :retrieve_procedure, only: [:champs, :annotations]
before_action :procedure_locked?, only: [:champs, :annotations]
2018-04-13 16:56:00 +02:00
def apercu
@dossier = procedure_without_control.new_dossier
@tab = apercu_tab
2018-04-13 16:56:00 +02:00
end
private
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