Sha256: 34937f17c250cb5d55cdd81dc6e0d09e7df376863538711219c499ee9ec0fba0

Contents?: true

Size: 1.14 KB

Versions: 35

Compression:

Stored size: 1.14 KB

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::Country) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_country), new_object_url, { :class => "btn-success", :icon => 'add', :id => 'admin_new_country' } %>
<% end if can? :create, Spree::Country %>

<table class="table" id='listing_countries' data-hook>
  <thead>
    <tr data-hook="tax_header">
      <th><%= Spree.t(:country_name) %></th>
      <th><%= Spree.t(:iso_name) %></th>
      <th><%= Spree.t(:states_required) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @countries.each do |country| %>
      <tr id="<%= spree_dom_id country %>" data-hook="country_row">
        <td><%= country.name %></td>
        <td><%= country.iso_name %></td>
        <td class="text-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
        <td class="actions actions-2 text-right">
          <%= link_to_edit(country, :no_text => true) if can? :edit, country %>
          <%= link_to_delete(country, :no_text => true) if can? :delete, country %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
goca-spree-backend-3.1.14.rails.5.0.1 app/views/spree/admin/countries/index.html.erb
goca-spree-backend-3.1.14.rails.5.0 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.14 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.13 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.12 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.11 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.10 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.9 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.8 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.7 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.6 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.5 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.4 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.3 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.2 app/views/spree/admin/countries/index.html.erb
spree_backend-3.0.10 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.1 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.0 app/views/spree/admin/countries/index.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/countries/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/countries/index.html.erb