Sha256: b073cad91a56004af0262a2e60f89dfa0a05b526a13cd8dd09b49af5c38af561

Contents?: true

Size: 1.49 KB

Versions: 27

Compression:

Stored size: 1.49 KB

Contents

<%= render 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:listing_countries) %>
<% end %>

<% 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, { :icon => 'plus', :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.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" 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

27 entries across 27 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.4 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.0.7 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.0.6 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.2.2 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.2.1 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.3 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.0.5 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.2.0 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.0.4 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.2 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.0.3 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.1 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.0 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/countries/index.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/countries/index.html.erb