From 4b0e910dff8c3745e954ee15949341ed48342bc7 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 14 Aug 2023 12:23:00 +1000 Subject: [PATCH] Simplify default values in Voucher form --- app/views/admin/vouchers/new.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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