Merge pull request #3967 from betagouv/fix-disabled-new-procedure-save-button
Do not check for path availability when in the “new procedure” form
This commit is contained in:
commit
8f6a1d1d10
1 changed files with 1 additions and 4 deletions
|
@ -6,7 +6,4 @@
|
|||
= form_for @procedure, url: { controller: 'admin/procedures', action: :create }, multipart: true do |f|
|
||||
= render partial: 'informations', locals: { f: f }
|
||||
.text-right
|
||||
- if @availability.in?(Procedure::PATH_CAN_PUBLISH)
|
||||
= f.button 'Valider', class: 'btn btn-info', id: 'save-procedure'
|
||||
- else
|
||||
= f.button 'Valider', class: 'btn btn-info', id: 'save-procedure', disabled: true
|
||||
= f.button 'Valider', class: 'btn btn-info', id: 'save-procedure'
|
||||
|
|
Loading…
Reference in a new issue