Sha256: 07368e5037807aee34166792503e64a43398b42227d78cedfe47224c11a50dac

Contents?: true

Size: 1.08 KB

Versions: 137

Compression:

Stored size: 1.08 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' %>
      <%= 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' %>
      <%= f.select :category_id, options_from_collection_for_select(@credit_categories, :id, :name, f.object.category.try(:id)),
        { include_blank: true }, { class: 'custom-select fullwidth', placeholder: t('spree.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

137 entries across 137 versions & 2 rubygems

Version Path
solidus_backend-4.4.1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.4.0 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.3.4 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.2.4 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.1.5 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.3.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.3.2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.1.4 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.3.1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.3.0 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.2.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.1.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.0.4 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-3.4.6 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.0.3 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.1.2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.2.2 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-3.4.5 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.2.1 app/views/spree/admin/store_credits/_form.html.erb
solidus_backend-4.2.0 app/views/spree/admin/store_credits/_form.html.erb