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
5
Vagrantfile
vendored
5
Vagrantfile
vendored
|
|
@ -22,7 +22,7 @@ Vagrant.configure(2) do |config|
|
||||||
# Create a forwarded port mapping which allows access to a specific port
|
# 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,
|
# 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.
|
# 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
|
# Create a private network, which allows host-only access to the machine
|
||||||
# using a specific IP.
|
# using a specific IP.
|
||||||
|
|
@ -69,4 +69,7 @@ Vagrant.configure(2) do |config|
|
||||||
# sudo apt-get update
|
# sudo apt-get update
|
||||||
# sudo apt-get install -y apache2
|
# sudo apt-get install -y apache2
|
||||||
# SHELL
|
# 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
|
end
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,11 @@
|
||||||
%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
|
-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.'
|
= 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