Sha256: 8236e2f0b4e3292def9348fa055abae3ba5042e76ad666ac81b8df30804442df

Contents?: true

Size: 1.69 KB

Versions: 101

Compression:

Stored size: 1.69 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>
        <%= link_to new_button_text, new_object_url, id: 'admin_new_named_type', class: 'btn btn-primary' %>
      </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><%= t('spree.name') %></th>
        <th><%= t('spree.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">
          <td>
            <%= named_type.name %>
          </td>
          <td>
            <span class="pill pill-<%= named_type.active? ? 'active' : 'inactive' %>">
              <%= t(named_type.active? ? :active : :inactive, scope: 'spree') %>
            </span>
          </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="no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: resource,
                 new_resource_url: new_object_url %>
  </div>
<% end %>

Version data entries

101 entries across 101 versions & 2 rubygems

Version Path
solidus_backend-2.11.17 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.7 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-2.11.16 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.0.6 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.6 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-2.11.15 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-2.11.14 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.0.5 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.5 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-2.11.13 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.0.4 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.4 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-2.11.12 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.0.3 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.3 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.2 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.1 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.1.0 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-2.11.11 app/views/spree/admin/shared/named_types/_index.html.erb
solidus_backend-3.0.2 app/views/spree/admin/shared/named_types/_index.html.erb