2016-06-06 17:40:32 +02:00
|
|
|
class Admin::PrevisualisationsController < AdminController
|
|
|
|
before_action :retrieve_procedure
|
|
|
|
|
|
|
|
def show
|
|
|
|
@procedure
|
|
|
|
@dossier = Dossier.new(id: 0, procedure: @procedure)
|
|
|
|
|
2016-06-14 11:59:50 +02:00
|
|
|
PrevisualisationService.destroy_all_champs @dossier
|
2016-06-06 17:40:32 +02:00
|
|
|
@dossier.build_default_champs
|
|
|
|
|
|
|
|
@champs = @dossier.ordered_champs
|
|
|
|
end
|
|
|
|
end
|