added conditional statement to _form.html.haml
This commit is contained in:
parent
9b12830c8f
commit
d85485ef4e
2 changed files with 5 additions and 2 deletions
|
|
@ -12,6 +12,9 @@
|
||||||
= f.input :title, input_html: { autofocus: true }
|
= f.input :title, input_html: { autofocus: true }
|
||||||
= f.input :description, input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
= f.input :description, input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||||
= f.input :price
|
= f.input :price
|
||||||
|
- if (@conference.tickets.count >= 1 && @ticket.new_record?) || @conference.tickets.count > 1
|
||||||
|
= f.input :price_currency, as: :select, class: 'form-control', collection: [@conference.tickets.first.price_currency], include_blank: false
|
||||||
|
- else
|
||||||
= f.input :price_currency, as: :select, class: 'form-control', collection: ['USD', 'EUR', 'GBP', 'INR', 'CNY', 'CHF'], include_blank: false
|
= f.input :price_currency, as: :select, class: 'form-control', collection: ['USD', 'EUR', 'GBP', 'INR', 'CNY', 'CHF'], include_blank: false
|
||||||
= f.input :registration_ticket, hint: 'A registration ticket is with which user register for the conference.'
|
= f.input :registration_ticket, hint: 'A registration ticket is with which user register for the conference.'
|
||||||
%p.text-right
|
%p.text-right
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ services:
|
||||||
osem:
|
osem:
|
||||||
build:
|
build:
|
||||||
args:
|
args:
|
||||||
CONTAINER_USERID: 13042
|
CONTAINER_USERID: 501
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue