Sha256: 11d3da993ef773ccc1efaa8348b3d4d5ed31a324b2e030e010b282dd922f7409

Contents?: true

Size: 1.33 KB

Versions: 14

Compression:

Stored size: 1.33 KB

Contents

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

<% content_for :page_actions do %>
  <%= button_link_to new_button_text, new_object_url, { icon: 'add', id: 'admin_new_named_type', :class => "btn-success" } %>
<% end if can? :create, resource %>

<% if @collection.any? %>
  <table class="table" id='listing_named_types' data-hook>
    <thead>
      <tr data-hook="named_types_header">
        <th><%= Spree.t(:name) %></th>
        <th><%= Spree.t(:state) %></th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <% @collection.each do |named_type| %>
        <tr id="<%= spree_dom_id named_type %>" data-hook="named_type_row">
          <td class="align-center">
            <%= named_type.name %>
          </td>
          <td class="align-center">
            <%= Spree.t(named_type.active? ? :active : :inactive) %>
          </td>
          <td class="actions actions-1 text-right">
            <% if named_type.mutable? %>
              <%= link_to_edit(named_type, no_text: true) if can? :edit, named_type %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: resource_name) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, resource %>!
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.9 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.8 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.7 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.6 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.5 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.4 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.3 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.2 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.1 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.0 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/shared/named_types/_index.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/shared/named_types/_index.html.erb