Sha256: 305fc4ce2749cfd1d4fd69361cfe832ead11ca9606c4e60d2906d37e1d1e2b33
Contents?: true
Size: 2 KB
Versions: 27
Compression:
Stored size: 2 KB
Contents
<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:zones) %> <% end %> <% content_for :page_actions do %> <% if can?(:create, Spree::Zone) %> <li> <%= button_link_to Spree.t(:new_zone), new_object_url, :icon => 'plus', :id => 'admin_new_zone_link' %> </li> <% end %> <% end %> <%= paginate @zones %> <% if @zones.any? %> <table class="index" id='listing_zones' data-hook> <colgroup> <col style="width: 30%" /> <col style="width: 40%" /> <col style="width: 15%" /> <col style="width: 15%" /> </colgroup> <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) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @zones.each do |zone| %> <tr id="<%= spree_dom_id zone %>" data-hook="zones_row" class="<%= cycle('odd', 'even')%>"> <td class="align-center"><%= zone.name %></td> <td><%= zone.description %></td> <td class="align-center"><%= zone.default_tax? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td> <td class="actions"> <% if can?(:update, zone) %> <%= link_to_edit zone, :no_text => true %> <% end %> <% if can?(:destroy, zone) %> <%= link_to_delete zone, :no_text => true %> <% end %> </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/zone')) %> <% if can?(:create, Spree::Zone) %> <%= link_to Spree.t(:add_one), spree.new_admin_zone_path %>! <% end %> </div> <% end %> <%= paginate @zones %>
Version data entries
27 entries across 27 versions & 1 rubygems