Sha256: 7c7919c4603dccd8ecc34539610b8f70b94e380f77d694ef0154c6580f73e31d

Contents?: true

Size: 1.29 KB

Versions: 34

Compression:

Stored size: 1.29 KB

Contents

<div data-hook='admin_store_credit_form_fields'>
  <%= f.field_container :amount, class: %w[form-group] do %>
    <%= f.label :amount, raw(Spree.t(:amount) + content_tag(:span, ' *', class: 'required')) %>
    <%= f.text_field :amount, class: 'form-control' %>
    <%= f.error_message_on :amount %>
  <% end %>
  <%= f.field_container :currency, class: %w[form-group] do %>
    <%= f.label :currency, raw(Spree.t(:currency) + content_tag(:span, ' *', class: 'required')) %>
    <%= f.select :currency, currency_options(f.object.currency) %>
    <%= f.error_message_on :currency %>
  <% end %>
  <%= f.field_container :category, class: %w[form-group] do %>
    <%= f.label :category, raw(Spree.t(:category) + content_tag(:span, ' *', class: 'required')) %>
    <%= 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(:select_a_store_credit_reason) } %>
    <%= f.error_message_on :category %>
  <% end %>
  <%= f.field_container :memo, class: %w[form-group] do %>
    <%= f.label :memo, Spree.t(:memo) %>
    <%= f.text_area :memo, class: 'form-control' %>
    <%= f.error_message_on :memo %>
  <% end %>
</div>

<script>
  $('#store_credit_currency').select2();
</script>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.8 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.14.1 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.7 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.14 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.6 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.13 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.5 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.12 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.4 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.11 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.10 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.3 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.9 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.2 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.8 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.1 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-3.7.7 app/views/spree/admin/store_credits/_form.html.erb
spree_backend-4.0.0 app/views/spree/admin/store_credits/_form.html.erb