diff --git a/app/views/admin/tickets/_form.html.haml b/app/views/admin/tickets/_form.html.haml index 67a47e6c..31961698 100644 --- a/app/views/admin/tickets/_form.html.haml +++ b/app/views/admin/tickets/_form.html.haml @@ -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: currencies, 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' } diff --git a/dotenv.example b/dotenv.example index 1ea7a98b..64ff91da 100644 --- a/dotenv.example +++ b/dotenv.example @@ -81,4 +81,4 @@ RECAPTCHA_SECRET_KEY="" # The url of the redis server OSEM_REDIS_URL='redis://localhost:6379/1' -OSEM_DEFAULT_CURRENCIES="['USD', 'EURO', 'GBP', 'INR', 'CNY']" +OSEM_DEFAULT_CURRENCIES="USD EURO GBP INR CNY"