Fix Update page page: Requirement field fixed to collapse for empty description

This commit is contained in:
BelieveC 2017-02-07 01:40:28 +05:30
parent 945b4aac60
commit 33d975514f
2 changed files with 9 additions and 2 deletions

View file

@ -55,7 +55,11 @@
%p.text-right
= link_to '#description', 'data-toggle' => 'collapse' do
Do you require something special?
.collapse#description
-if @event.description.blank?
.collapse#description
= f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.'
-else
.collapse.in#description
= f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.'