Sha256: 85dae9b0eb805f7f120f25edb67342c7980abc263897ff20d0396d3ebbe60a6f

Contents?: true

Size: 1.09 KB

Versions: 27

Compression:

Stored size: 1.09 KB

Contents

<div data-hook="admin_store_credit_form_fields" class="row">
  <div class="alpha twelve columns">
    <%= f.field_container :amount do %>
      <%= f.label :amount, Spree.t(:amount) %> <span class="required">*</span><br />
      <%= f.number_field :amount, min: 0.00, step: :any %>
      <%= f.error_message_on :amount %>
    <% end %>
  </div>
  <div class="alpha twelve columns">
    <%= f.field_container :category do %>
      <%= f.label :category, Spree.t(:credit_type) %> <span class="required">*</span><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="alpha twelve columns">
    <%= f.field_container :memo do %>
      <%= f.label :memo, Spree.t(:memo) %>
      <%= f.text_area :memo, class: "fullwidth" %>
      <%= f.error_message_on :memo %>
    <% end %>
  </div>
</div>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.4 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.0.7 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.0.6 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.2.2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.2.1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.0.5 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.2.0 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.0.4 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.0.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.0 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/store_credits/_form.html.erb