mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Simplify default values in Voucher form
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user