commencer: add an independant page

This commit is contained in:
Pierre de La Morinerie 2019-01-16 10:57:58 +00:00
parent bd77f82df0
commit 016e5f2e6f
14 changed files with 252 additions and 42 deletions

View file

@ -23,6 +23,14 @@ module DossierHelper
end
end
def url_for_new_dossier(procedure)
if procedure.brouillon?
new_dossier_url(procedure_id: procedure.id, brouillon: true)
else
new_dossier_url(procedure_id: procedure.id)
end
end
def dossier_submission_is_closed?(dossier)
dossier.brouillon? && dossier.procedure.archivee?
end