Sha256: 6e49c0ccbd1c28eceb12e62ee3e958acc6297ba5b14e63d76c991724aa1ec8de
Contents?: true
Size: 1.6 KB
Versions: 11
Compression:
Stored size: 1.6 KB
Contents
<%= render 'spree/admin/shared/areas_tabs' %> <% admin_breadcrumb(Spree.t(:settings)) %> <% admin_breadcrumb(Spree.t('admin.tab.areas')) %> <% admin_breadcrumb(plural_resource_name(Spree::Country)) %> <% content_for :page_actions do %> <ul class="actions inline-menu"> <% if can?(:create, Spree::Country) %> <li> <%= button_link_to Spree.t(:new_country), new_object_url, { id: 'admin_new_country' } %> </li> <% end %> </ul> <% end %> <table class="index" id='listing_countries' data-hook> <colgroup> <col style="width: 35%" /> <col style="width: 35%" /> <col style="width: 20%" /> <col style="width: 10%" /> </colgroup> <thead> <tr data-hook="tax_header"> <th><%= Spree::Country.human_attribute_name(:name) %></th> <th><%= Spree::Country.human_attribute_name(:iso_name) %></th> <th><%= Spree::Country.human_attribute_name(:states_required) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @countries.each do |country| %> <tr id="<%= spree_dom_id country %>" data-hook="country_row" class="<%= cycle('odd', 'even')%>"> <td><%= country.name %></td> <td><%= country.iso_name %></td> <td class="align-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td> <td class="actions"> <% if can?(:edit, country) %> <%= link_to_edit country, no_text: true %> <% end %> <% if can?(:destroy, country) %> <%= link_to_delete country, no_text: true %> <% end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
11 entries across 11 versions & 1 rubygems