Sha256: 2befb444cf2be95e9dd2610c3b46d16ce769db39ae2f69c0e8ed63c584fabe88

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

<div data-hook="admin_store_credit_form_fields" class="row">
  <div class="col-12">
    <%= f.field_container :amount do %>
      <%= f.label :amount, class: 'required' %><br />
      <%= render "spree/admin/shared/number_with_currency", f: f, amount_attr: :amount, currency_attr: :currency, required: true %>
      <%= f.error_message_on :amount %>
      <%= f.error_message_on :currency %>
    <% end %>
  </div>
  <div class="col-12">
    <%= f.field_container :category_id 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_id %>
    <% end %>
  </div>
  <div data-hook="admin_store_credit_memo_field" class="col-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

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-2.2.2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-2.2.1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-2.2.0 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/store_credits/_form.html.erb