This commit is contained in:
Astradeni 2018-05-08 15:27:56 +00:00 • committed by GitHub
commit a9f964ca16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 4 deletions

View file

@ -1,4 +1,4 @@
module DateTimeHelper
module DateTimeCurrencyHelper
##
# Includes functions related to date or time manipulations
##
@ -34,4 +34,8 @@ module DateTimeHelper
"#{h} h #{min.round} min"
end
end
def currencies
default_currencies = YAML::load(ENV['OSEM_DEFAULT_CURRENCIES'])
end
end

View file

@ -12,7 +12,7 @@
= 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
= f.input :price_currency, as: :select, class: 'form-control', collection: %W(#{ENV['OSEM_DEFAULT_CURRENCIES']}), include_blank: false
= 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' }