Sha256: 89390834aa0dedf943c68a487bb37fbd5c874163839482a075c62aabf6b119ea

Contents?: true

Size: 1.79 KB

Versions: 24

Compression:

Stored size: 1.79 KB

Contents

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

<% content_for :page_actions do %>
  <li id="new_ot_link">
    <%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :icon => 'icon-plus', :id => 'new_option_type_link' } %>
  </li>
<% end %>

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

<div id="new_option_type"></div>

<% if @option_types.any? %>
<table class="index sortable" id="listing_option_types" data-hook data-sortable-link="<%= update_positions_admin_option_types_url %>">
  <colgroup>
    <col style="width: 10%">
    <col style="width: 35%">
    <col style="width: 40%">
    <col style="width: 15%">
  </colgroup>
  <thead>
    <tr data-hook="option_header">
      <th class="no-border"></th>
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:presentation) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @option_types.each do |option_type| %>
      <tr class="spree_option_type <%= cycle('odd', 'even')%>" id="<%= spree_dom_id option_type %>" data-hook="option_row">
        <td class="no-border"><span class="handle"></span></td>
        <td class="align-center"><%= option_type.name %></td>
        <td class="align-center presentation"><%= option_type.presentation %></td>
        <td class="actions">
          <%= link_to_edit(option_type, :class => 'admin_edit_option_type', :no_text => true) %>
          <%= link_to_delete(option_type, :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/option_type')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_option_type_path %>!
  </div>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

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