Sha256: 8cd7e9e8e71496bb671e2fcb2ba7e65510185f5cde409f9db8241186cdb5d6ec
Contents?: true
Size: 1.55 KB
Versions: 3
Compression:
Stored size: 1.55 KB
Contents
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %> <% admin_breadcrumb(plural_resource_name(Spree::Prototype)) %> <% content_for :page_actions do %> <% if can?(:create, Spree::Prototype) %> <li id="new_prototype_link"> <%= link_to I18n.t('spree.new_prototype'), spree.new_admin_prototype_url, { class: "btn btn-primary" } %> </li> <% end %> <% end %> <% if @prototypes.any? %> <table class="index" id='listing_prototypes' data-hook> <colgroup> <col style="width: 90%"> <col style="width: 10%"> </colgroup> <thead> <tr data-hook="prototypes_header"> <th><%= Spree::Prototype.human_attribute_name(:name) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @prototypes.each do |prototype| %> <tr id="<%= spree_dom_id prototype %>" data-hook="prototypes_row" class="<%= cycle('odd', 'even')%>"> <td style="padding-left:1em"><%= prototype.name %></td> <td class="actions"> <% if can?(:update, prototype) %> <%= link_to_edit(prototype, :no_text => true, :class => 'admin_edit_prototype') %> <% end %> <% if can?(:destroy, prototype) %> <%= link_to_delete(prototype, :no_text => true) %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="alpha twelve columns no-objects-found"> <%= render 'spree/admin/shared/no_objects_found', resource: Spree::Prototype, new_resource_url: new_object_url %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems