Sha256: 854dada88e121e4f889d62cb260ce54d3e61d714ff0db7228b0841bc270ea019

Contents?: true

Size: 1.65 KB

Versions: 12

Compression:

Stored size: 1.65 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">
      <%= button_link_to Spree.t(:new_prototype), new_admin_prototype_url, {:remote => true, :id => 'new_prototype_link'} %>
    </li>
  <% end %>
<% end %>

<%# Placeholder for new prototype form %>
<div id="new_prototype_container"></div>

<% 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

12 entries across 12 versions & 2 rubygems

Version Path
solidus_backend-2.0.3 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.4.2 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-2.0.2 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.4.1 app/views/spree/admin/prototypes/index.html.erb
solidus_prototypes-1.0.0 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-2.0.1 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-2.0.0 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.4.0 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/prototypes/index.html.erb