Sha256: 758cfa135132f6a7f5b0e5c70bf1e684b988158077857b4d5da3915bba3c0fe5

Contents?: true

Size: 1.16 KB

Versions: 33

Compression:

Stored size: 1.16 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', :class => 'btn-success' %>
<% end %>

<% if @promotion_categories.any? %>
  <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 %>
            <%= link_to_delete promotion_category, :no_text => true %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% 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

33 entries across 33 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.13 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.12 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.11 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.10 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.9 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.8 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.7 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.6 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.5 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.4 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.3 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.2 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.0.10 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.1 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.0 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/promotion_categories/index.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/promotion_categories/index.html.erb