Sha256: 21933840b12b63e29fc5afc0af3d49303149dd7bff321a9f8822296809ffea90

Contents?: true

Size: 1.55 KB

Versions: 63

Compression:

Stored size: 1.55 KB

Contents

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

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_zone), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_zone_link' %>
<% end if can? :create, Spree::Zone %>

<%= paginate @zones %>

<% if @zones.any? %>
  <table class="table" id='listing_zones' data-hook>
    <thead>
      <tr data-hook="zones_header">
        <th><%= sort_link @search,:name, Spree.t(:name), title: 'zones_order_by_name_title' %></th>
        <th>
          <%= sort_link @search,:description, Spree.t(:description), {}, {title: 'zones_order_by_description_title'} %>
        </th>
        <th><%= Spree.t(:default_tax_zone) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @zones.each do |zone| %>
        <tr id="<%= spree_dom_id zone %>" data-hook="zones_row">
          <td><%= zone.name %></td>
          <td><%= zone.description %></td>
          <td><%= zone.default_tax? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
          <td class="actions actions-2 text-right">
            <%= link_to_edit(zone, no_text: true) if can? :edit, zone %>
            <%= link_to_delete(zone, no_text: true) if can? :delete, zone %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Zone)) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::Zone %>!
  </div>
<% end %>

<%= paginate @zones %>

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
spree_backend-3.7.14.1 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.14 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.13 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.12 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.11 app/views/spree/admin/zones/index.html.erb
spree_backend-3.4.6 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.10 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.9 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.8 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.7 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.6 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.5 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.4 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.3 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.2 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.1 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.0 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.0.rc3 app/views/spree/admin/zones/index.html.erb
spree_backend-3.2.9 app/views/spree/admin/zones/index.html.erb
spree_backend-3.7.0.rc2 app/views/spree/admin/zones/index.html.erb