Sha256: bc56804d6ee7ff61e76475e3c26fbb1f8492681ab42dd3757bd4f755ce3595ed

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

<% content_for :page_title do %>
  <%= Spree::Prototype.model_name.human(count: :other) %>
<% end %>

<% 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, :icon => 'plus', :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

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-1.3.2 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.3.1 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.3.0 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/prototypes/index.html.erb
solidus_backend-1.3.0.beta1 app/views/spree/admin/prototypes/index.html.erb