Merge pull request #3337 from betagouv/fix_3336_path_bug

[fix #3336] Fix bug in admin procedure description
This commit is contained in:
Paul Chavard 2019-01-29 14:09:02 +01:00 committed by GitHub
commit 7c59f953e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,4 @@
= form_for @procedure, url: url_for({ controller: 'admin/procedures', action: :update, id: @procedure.id }), multipart: true do |f|
= render partial: 'informations', locals: { f: f }
.text-right
- if !Flipflop.publish_draft? || @availability.in?(Procedure::PATH_CAN_PUBLISH)
= f.button 'Enregistrer', class: 'btn btn-success'
- else
= f.button 'Enregistrer', class: 'btn btn-success', disabled: true
= f.button 'Enregistrer', class: 'btn btn-success'