Sha256: 26169433eca269d9ce550616c673a8d2f211ccf0f5eca6aff5fb6e00778487e6

Contents?: true

Size: 1.44 KB

Versions: 15

Compression:

Stored size: 1.44 KB

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::StoreCreditCategory) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_store_credit_category_link' %>
<% end if can? :create, Spree::StoreCreditCategory %>

<% if @store_credit_categories.any? %>
<div class="table-responsive">
  <table class="table">
    <thead>
      <tr data-hook="admin_store_credit_categories_index_headers">
        <th><%= Spree.t(:name) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @store_credit_categories.each do |store_credit_category| %>
        <tr id="<%= spree_dom_id store_credit_category %>" data-hook="admin_store_credit_categories_index_rows">
          <td><%= store_credit_category.name %></td>
          <td class="actions text-right">
            <%= link_to_edit(store_credit_category, no_text: true) if can? :edit, store_credit_category %>
            <%= link_to_delete(store_credit_category, no_text: true) if can? :destroy, store_credit_category %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
<% else %>
  <div class="alert alert-warning">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCreditCategory)) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::StoreCreditCategory %>!
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_backend-4.2.7 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.6 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.5 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.4 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.3.1 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.3 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.2 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.1 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0.rc5 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0.rc4 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0.rc3 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0.rc2 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0.rc1 app/views/spree/admin/store_credit_categories/index.html.erb
spree_backend-4.2.0.beta app/views/spree/admin/store_credit_categories/index.html.erb