Sha256: 55515b6e08f218ff6c1d5f0ac0f0d0a39e927b7885a60f2e3d1b3c237c79d7ef
Contents?: true
Size: 1.62 KB
Versions: 5
Compression:
Stored size: 1.62 KB
Contents
<% admin_breadcrumb(link_to plural_resource_name(SolidusPromotions::Promotion), solidus_promotions.admin_promotions_path) %> <% admin_breadcrumb(plural_resource_name(SolidusPromotions::PromotionCategory)) %> <% content_for :page_actions do %> <% if can?(:create, SolidusPromotions::PromotionCategory) %> <li> <%= link_to t('solidus_promotions.new_promotion_category'), solidus_promotions.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><%= SolidusPromotions::PromotionCategory.human_attribute_name :name %></th> <th><%= SolidusPromotions::PromotionCategory.human_attribute_name :code %></th> <th class='actions'></th> </thead> <tbody> <% @promotion_categories.each do |category| %> <tr> <td><%= category.name %></td> <td><%= category.code %></td> <td class="actions"> <% if can?(:update, category) %> <%= link_to_edit category, no_text: true %> <% end %> <% if can?(:destroy, category) %> <%= link_to_delete category, no_text: true %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="no-objects-found"> <%= render 'spree/admin/shared/no_objects_found', resource: SolidusPromotions::PromotionCategory, new_resource_url: new_object_url %> </div> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems