fix(prefill): it should be possible to prefill a dossier on a test procedure
This commit is contained in:
parent
54968daf17
commit
b3aeb46c1b
23 changed files with 51 additions and 136 deletions
|
@ -1,12 +1,4 @@
|
|||
module ProcedureHelper
|
||||
def procedure_lien(procedure, prefill_token: nil)
|
||||
if procedure.brouillon?
|
||||
commencer_test_url(path: procedure.path, prefill_token: prefill_token)
|
||||
else
|
||||
commencer_url(path: procedure.path, prefill_token: prefill_token)
|
||||
end
|
||||
end
|
||||
|
||||
def procedure_libelle(procedure)
|
||||
parts = procedure.brouillon? ? [procedure_badge(procedure)] : []
|
||||
parts << procedure.libelle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue