Add default currencies
This commit is contained in:
parent
33d32b9294
commit
ff6497ea46
6 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
@ -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: 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' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue