Sha256: 108c93ee5c8edfaf69d486470957dec6cfeac2821893554e1dddc80c90ba9a5d
Contents?: true
Size: 1.76 KB
Versions: 42
Compression:
Stored size: 1.76 KB
Contents
<%= render 'spree/admin/shared/configuration_menu' %> <% content_for :page_title do %> <%= Spree.t(:zones) %> <% end %> <% content_for :page_actions do %> <li> <%= button_link_to Spree.t(:new_zone), new_object_url, :icon => 'plus', :id => 'admin_new_zone_link' %> </li> <% 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"> <%=link_to_edit zone, :no_text => true %> <%=link_to_delete zone, :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/zone')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_zone_path %>! </div> <% end %> <%= paginate @zones %>
Version data entries
42 entries across 42 versions & 2 rubygems