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

5
Vagrantfile vendored
View file

@ -22,7 +22,7 @@ Vagrant.configure(2) do |config|
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network "forwarded_port", guest: 3000, host: 1234
# Create a private network, which allows host-only access to the machine
# using a specific IP.
@ -69,4 +69,7 @@ Vagrant.configure(2) do |config|
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
config.proxy.http = "http://iit2015120:Cway9421584659@172.31.1.4:8080"
config.proxy.https = "https://iit2015120:Cway9421584659@172.31.1.4:8080"
config.proxy.no_proxy = "localhost,127.0.0.1"
end

View file

@ -55,8 +55,12 @@
%p.text-right
= link_to '#description', 'data-toggle' => 'collapse' do
Do you require something special?
-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.'
%p.text-right