Sha256: fadc028aaf67d0a66121800b14d09f94d456b5faec308b5b13c9b72b4b7d3f56
Contents?: true
Size: 1002 Bytes
Versions: 4
Compression:
Stored size: 1002 Bytes
Contents
<div data-hook="admin_store_credit_form_fields" class="row"> <div class="col-xs-12"> <%= f.field_container :amount do %> <%= f.label :amount, class: 'required' %><br /> <%= f.number_field :amount, min: 0.00, step: :any %> <%= f.error_message_on :amount %> <% end %> </div> <div class="col-xs-12"> <%= f.field_container :category do %> <%= f.label :category_id, class: 'required' %><br /> <%= f.select :category_id, options_from_collection_for_select(@credit_categories, :id, :name, f.object.category.try(:id)), { include_blank: true }, { class: 'select2 fullwidth', placeholder: Spree.t("admin.store_credits.select_reason") } %> <%= f.error_message_on :category %> <% end %> </div> <div data-hook="admin_store_credit_memo_field" class="col-xs-12"> <%= f.field_container :memo do %> <%= f.label :memo %> <%= f.text_area :memo, class: "fullwidth" %> <%= f.error_message_on :memo %> <% end %> </div> </div>
Version data entries
4 entries across 4 versions & 1 rubygems