Sha256: a87ce55cfe350e1c85d70f213c5765eeb2278e855ca77d64c4b1655a8c4dbe14

Contents?: true

Size: 1.19 KB

Versions: 33

Compression:

Stored size: 1.19 KB

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::Prototype) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_prototype), new_object_url, { :class => "btn-success", :icon => 'add', 'data-update' => 'new_prototype', :id => 'new_prototype_link'} %>
<% end %>

<% if @prototypes.any? %>
  <table class="table" id='listing_prototypes' data-hook>
    <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">
          <td><%= prototype.name %></td>
          <td class="actions actions-2 text-right">
            <%= 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="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Prototype)) %>,
    <%= link_to Spree.t(:add_one), new_object_url %>!
  </div>
<% end %>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.13 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.12 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.11 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.10 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.9 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.8 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.7 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.6 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.5 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.4 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.3 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.2 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.0.10 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.1 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.0 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/prototypes/index.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/prototypes/index.html.erb