Sha256: b9650413a6c49f752bf705801bf1425c6e1c17b0856b09fd2439b2c6ec1efb10
Contents?: true
Size: 1.64 KB
Versions: 4
Compression:
Stored size: 1.64 KB
Contents
<%= render 'spree/admin/shared/settings_checkout_tabs' %> <% admin_breadcrumb(root_tab) %> <% admin_breadcrumb(sub_tab) %> <% admin_breadcrumb(page_title) %> <% content_for :page_actions do %> <ul class="actions inline-menu"> <% if can?(:create, Spree::ReturnReason) %> <li> <%= button_link_to new_button_text, new_object_url, { id: 'admin_new_named_type' } %> </li> <% end %> </ul> <% end %> <% if @collection.any? %> <table class="index" id='listing_named_types' data-hook> <colgroup> <col style="width: 65%" /> <col style="width: 20%" /> <col style="width: 15%" /> </colgroup> <thead> <tr data-hook="named_types_header"> <th><%= Spree.t(:name) %></th> <th><%= Spree.t(:active) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @collection.each do |named_type| %> <tr id="<%= spree_dom_id named_type %>" data-hook="named_type_row" class="<%= cycle('odd', 'even')%>"> <td class="align-center"> <%= named_type.name %> </td> <td class="align-center"> <%= Spree.t(named_type.active? ? :say_yes : :say_no) %> </td> <td class="actions"> <% if named_type.mutable? && can?(:update, named_type) %> <%= link_to_edit named_type, no_text: true %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="col-xs-9 no-objects-found"> <%= render 'spree/admin/shared/no_objects_found', resource: resource, new_resource_url: new_object_url %> </div> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems