Sha256: a526ca165e91fdcf179cf194969aecc4e1547a28b4d9de8fac7728b06c8b1e3d

Contents?: true

Size: 1.7 KB

Versions: 85

Compression:

Stored size: 1.7 KB

Contents

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

<% content_for :page_actions do %>
  <span id="new_ot_link">
    <%= button_link_to Spree.t(:new_option_type), new_object_url, { class: "btn-success", icon: 'add', id: 'new_option_type_link' } %>
  </span>
<% end if can?(:create, Spree::OptionType) %>

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

<% if @option_types.any? %>
<table class="table sortable" id="listing_option_types" data-hook data-sortable-link="<%= update_positions_admin_option_types_url %>">
  <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="move-handle text-center">
          <span class="icon icon-move handle"></span>
        </td>
        <td><%= option_type.name %></td>
        <td class="presentation"><%= option_type.presentation %></td>
        <td class="actions actions-2 text-right">
          <%= link_to_edit(option_type, class: 'admin_edit_option_type', no_text: true) if can?(:edit, option_type) %>
          <%= link_to_delete(option_type, no_text: true) if can?(:delete, option_type) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::OptionType)) %>,
    <%= link_to Spree.t(:add_one), new_object_url if can?(:create, Spree::OptionType) %>!
  </div>
<% end %>

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
spree_backend-4.0.9 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.15 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.14 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.0.8 app/views/spree/admin/option_types/index.html.erb
spree_backend-3.7.14.1 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.13.1 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.0.7.1 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.0.7 app/views/spree/admin/option_types/index.html.erb
spree_backend-3.7.14 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.13 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.0.6 app/views/spree/admin/option_types/index.html.erb
spree_backend-3.7.13 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.0.5 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.12 app/views/spree/admin/option_types/index.html.erb
spree_backend-3.7.12 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.0.4 app/views/spree/admin/option_types/index.html.erb
spree_backend-3.7.11 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.11 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.10 app/views/spree/admin/option_types/index.html.erb
spree_backend-4.1.9 app/views/spree/admin/option_types/index.html.erb