This commit is contained in:
Chaitanya Yadav 2017-02-08 19:26:42 +00:00 committed by GitHub
commit 716b4826a7

View file

@ -55,9 +55,9 @@
%p.text-right %p.text-right
= link_to '#description', 'data-toggle' => 'collapse' do = link_to '#description', 'data-toggle' => 'collapse' do
Do you require something special? 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 %p.text-right
= f.submit 'Update Proposal', class: 'btn btn-success' = f.submit 'Update Proposal', class: 'btn btn-success'