Fix Update page page: Requirement field fixed to collapse for empty description
This commit is contained in:
parent
945b4aac60
commit
33d975514f
2 changed files with 9 additions and 2 deletions
|
|
@ -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.'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue