Sha256: 81bd112906905e0f7a73a59fe379ff029619bcec6e3e2cc9b91fa3c60b3c6d84

Contents?: true

Size: 1.39 KB

Versions: 12

Compression:

Stored size: 1.39 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.svg', id: 'admin_new_country' } %>
<% end if can? :create, Spree::Country %>
<div class="table-responsive">
  <table class="table" id='listing_countries' data-hook>
    <thead>
      <tr data-hook="tax_header">
        <th><%= Spree.t(:country_name) %></th>
        <th class="text-center"><%= Spree.t(:iso3) %></th>
        <th class="text-center"><%= Spree.t(:states_required) %></th>
        <th class="text-center"><%= Spree.t(:zipcode_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 class="text-center"><%= country.iso3 %></td>
          <td class="text-center"><%= active_badge(country.states_required?) %></td>
          <td class="text-center"><%= active_badge(country.zipcode_required?) %></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>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.2.7 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.6 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.5 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.4 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.3.1 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.3 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.2 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.1 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.0 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.0.rc5 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.0.rc4 app/views/spree/admin/countries/index.html.erb
spree_backend-4.2.0.rc3 app/views/spree/admin/countries/index.html.erb