Sha256: 7258cace55c22e0acc9bbe1f2b45500e243514837b0578063cf1bfb5aff56cb4

Contents?: true

Size: 1.59 KB

Versions: 26

Compression:

Stored size: 1.59 KB

Contents

<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
<% admin_breadcrumb(Spree::PromotionCategory.model_name.human(count: :many)) %>


<% content_for :page_actions do %>
  <% if can?(:create, Spree::PromotionCategory) %>
    <li>
      <%= link_to t('spree.new_promotion_category'), spree.new_admin_promotion_category_path, class: 'btn btn-primary' %>
    </li>
  <% end %>
<% end %>

<% if @promotion_categories.any? %>
  <table class="index">
    <colgroup>
      <col style="width: 40%">
      <col style="width: 40%">
      <col style="width: 20%">
    </colgroup>
    <thead>
      <th><%= Spree::PromotionCategory.human_attribute_name :name %></th>
      <th><%= Spree::PromotionCategory.human_attribute_name :code %></th>
      <th class='actions'></th>
    </thead>
    <tbody>
      <% @promotion_categories.each do |promotion_category| %>
        <tr>
          <td><%= promotion_category.name %></td>
          <td><%= promotion_category.code %></td>
          <td class="actions">
            <% if can?(:update, promotion_category) %>
              <%= link_to_edit promotion_category, no_text: true %>
            <% end %>
            <% if can?(:destroy, promotion_category) %>
              <%= link_to_delete promotion_category, no_text: true %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
    <div class="no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: Spree::PromotionCategory,
                 new_resource_url: new_object_url %>
  </div>
<% end %>

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
solidus_backend-2.6.6 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.7.4 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.7.3 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.6.5 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.7.2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.6.4 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.6.3 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.7.1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.6.2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/promotion_categories/index.html.erb