Sha256: 4af4a1909d5a76f06d8fdaf5f83ff8635500ecadc70f3eeecd263d6aafb7b131

Contents?: true

Size: 1.31 KB

Versions: 15

Compression:

Stored size: 1.31 KB

Contents

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

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

<% if @promotion_categories.any? %>

<div class="table-responsive">
  <table class="table">
    <thead>
      <th><%= Spree::PromotionCategory.human_attribute_name :name %></th>
      <th><%= Spree::PromotionCategory.human_attribute_name :code %></th>
      <th></th>
    </thead>
    <tbody>
      <% @promotion_categories.each do |promotion_category| %>
        <tr>
          <td><%= promotion_category.name %></td>
          <td><%= promotion_category.code %></td>
          <td class="actions actions-2 text-right">
            <%= link_to_edit promotion_category, no_text: true if can?(:edit, promotion_category) %>
            <%= link_to_delete promotion_category, no_text: true if can?(:delete, promotion_category) %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::PromotionCategory)) %>,
    <%= link_to Spree.t(:add_one), new_object_url %>!
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

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