Sha256: 99f8b07ab74e35fe6c6d831671e3528e6ab44a25b193e5c58e8ccdfe1407d499

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 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>
      <%= button_link_to t('spree.new_promotion_category'), spree.new_admin_promotion_category_path %>
    </li>
  <% end %>
<% end %>

<table>
  <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>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.5.1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.5.0 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/promotion_categories/index.html.erb