Sha256: e4d4bc9494adcbd11113970e20c7b036fc8a0ec6d4c8b99378897b7d04dad2d9

Contents?: true

Size: 1.58 KB

Versions: 24

Compression:

Stored size: 1.58 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t(:prototypes) %>
<% end %>

<% content_for :page_actions do %>
  <li id="new_prototype_link">
    <%= button_link_to Spree.t(:new_prototype), new_admin_prototype_url, {:remote => true, :icon => 'icon-plus', 'data-update' => 'new_prototype', :id => 'new_prototype_link'} %>
  </li>
<% end %>

<%= render 'spree/admin/shared/product_sub_menu' %>

<%= image_tag 'select2-spinner.gif', :plugin => 'spree', :style => 'display: none', :id => 'busy_indicator' %>

<%# Placeholder for new prototype form %>
<div id="new_prototype"></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.t(: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">
          <%= link_to_edit(prototype, :no_text => true, :class => 'admin_edit_prototype') %>
          <%= link_to_delete(prototype, :no_text => true) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/prototype')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_prototype_path %>!
  </div>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.11 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.10 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.13 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.9 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.8 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.12 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.7 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.11 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.10 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.2.1 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.6 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.2.0 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.5 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.9 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.4 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.8 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.3 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.0.7 app/views/spree/admin/prototypes/index.html.erb
spree_backend-2.1.2 app/views/spree/admin/prototypes/index.html.erb