Sha256: 3507d7bdbebaed56a8e81c44597996202f8a3a4c27b20c359c2710dadaf594fb

Contents?: true

Size: 1.25 KB

Versions: 19

Compression:

Stored size: 1.25 KB

Contents

<% content_for :page_title do %>
  <%= Spree::PromotionCategory.model_name.human(count: :many) %>
<% end %>

<% content_for :page_actions do %>
  <% if can?(:create, Spree::PromotionCategory) %>
    <li>
      <%= button_link_to Spree.t(:new_promotion_category), spree.new_admin_promotion_category_path, :icon => 'plus' %>
    </li>
  <% end %>
<% end %>

<%= render 'spree/admin/shared/promotion_sub_menu' %>

<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

19 entries across 19 versions & 1 rubygems

Version Path
solidus_backend-1.1.4 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.7 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.6 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.3 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.5 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.4 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.3 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.0 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.0 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.0.rc2 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.0.rc1 app/views/spree/admin/promotion_categories/index.html.erb
solidus_backend-1.0.0.pre3 app/views/spree/admin/promotion_categories/index.html.erb