Added price currency to conference, select currency in basic info and created data rake task for setting old conferences' price currency

This commit is contained in:
Edward Phillips 2019-07-13 21:39:47 +02:00
parent 9b12830c8f
commit 17488e11c7
8 changed files with 398 additions and 355 deletions

View file

@ -12,7 +12,10 @@
= f.input :title, input_html: { autofocus: true }
= f.input :description, input_html: { rows: 5, data: { provide: 'markdown-editable' } }
= f.input :price
= f.input :price_currency, as: :select, class: 'form-control', collection: ['USD', 'EUR', 'GBP', 'INR', 'CNY', 'CHF'], include_blank: false
%label
Currency
%p
= @conference.price_currency
= f.input :registration_ticket, hint: 'A registration ticket is with which user register for the conference.'
%p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }