diff --git a/app/views/admin/vouchers/new.html.haml b/app/views/admin/vouchers/new.html.haml index de23acf867..6956f809bc 100644 --- a/app/views/admin/vouchers/new.html.haml +++ b/app/views/admin/vouchers/new.html.haml @@ -19,9 +19,9 @@ .alpha.four.columns = f.label :type, t('.voucher_type') .omega.eight.columns - = f.select :type, options_for_select(Voucher::TYPES.map { |type| [t(".#{type.demodulize.underscore}"), type] }, @voucher.class.to_s) + = f.select :type, options_for_select(Voucher::TYPES.map { |type| [t(".#{type.demodulize.underscore}"), type] }, @voucher.type) .row .alpha.four.columns = f.label :amount, t('.voucher_amount') .omega.eight.columns - = f.text_field :amount, value: @voucher.amount + = f.text_field :amount