Fixes #1260 ,Change proposal update page's requirement field behavior

i# with '#' will be ignored, and an empty message aborts the commit.
This commit is contained in:
BelieveC 2017-02-07 01:40:28 +05:30
parent ddc9ed9dc6
commit 3f3e71f43a

View file

@ -55,9 +55,9 @@
%p.text-right
= link_to '#description', 'data-toggle' => 'collapse' do
Do you require something special?
.collapse#description
= f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.'
#description{class:"collapse#{'in' if @event.description.present?}"}
= f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.'
%p.text-right
= f.submit 'Update Proposal', class: 'btn btn-success'