Sha256: eba14a284c6e383361e358414eb49e87d9423b59fbda861ae8cb0e6eb084bff9
Contents?: true
Size: 1.63 KB
Versions: 11
Compression:
Stored size: 1.63 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.svg', id: 'admin_new_zone_link' %> <% end if can? :create, Spree::Zone %> <% if @zones.any? %> <div class="table-responsive"> <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><%= active_badge(zone.default_tax?) %></td> <td class="actions"> <span class="d-flex justify-content-end"> <%= link_to_edit(zone, no_text: true) if can? :edit, zone %> <%= link_to_delete(zone, no_text: true) if can? :delete, zone %> </span> </td> </tr> <% end %> </tbody> </table> </div> <% 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, theme: 'admin-twitter-bootstrap-4' %>
Version data entries
11 entries across 11 versions & 1 rubygems