demarches-normaliennes/app/views/admin/procedures/new.html.haml
Nicolas Bouilleaud 43f936ec77 Do not check for path availability when in the “new procedure” form
The user can’t even enter the path here, it’s nil.

fixes #3918

The @availability was always PATH_NOT_AVAILABLE when the form was reloaded after an error, because Procedure::path_availability always found an (archived) procedure with a nil path. It got confused and concluded its path was conflicting.

🤷🏻‍♂️
2019-06-18 14:31:12 +02:00

9 lines
389 B
Text

.row.white-back
%h2
= t('dynamics.admin.dossiers.tableau_de_bord.nouvelle_procedure')
#procedure_new.section.section-label
= form_for @procedure, url: { controller: 'admin/procedures', action: :create }, multipart: true do |f|
= render partial: 'informations', locals: { f: f }
.text-right
= f.button 'Valider', class: 'btn btn-info', id: 'save-procedure'