Sha256: 23267440980a2169c37ec46fe9048ea4a2262f0f53464153bc4c412fb25b30bd

Contents?: true

Size: 1.52 KB

Versions: 15

Compression:

Stored size: 1.52 KB

Contents

<%= render partial: 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= page_title %>
<% end %>

<% content_for :page_actions do %>
  <ul class="actions inline-menu">
    <li>
      <%= button_link_to new_button_text, new_object_url, { icon: 'plus', id: 'admin_new_named_type' } %>
    </li>
  </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(:state) %></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? ? :active : :inactive) %>
          </td>
          <td class="actions">
            <% if named_type.mutable? %>
              <%= link_to_edit named_type, no_text: true %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: resource_name) %>,
    <%= link_to Spree.t(:add_one), new_object_url %>!
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spree_backend-2.4.10 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.9 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.8 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-1.0.0.pre app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.7 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.6 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.5 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.4 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.3 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.2 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.1 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.0 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.0.rc3 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.0.rc2 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-2.4.0.rc1 app/views/spree/admin/shared/named_types/_index.html.erb