Sha256: 8f283f415d6a3033c29b6221298815cbcde3114ddda2e4ebd170feca52cec66f

Contents?: true

Size: 934 Bytes

Versions: 15

Compression:

Stored size: 934 Bytes

Contents

<div id="new_state" data-hook></div>
<div class="table-responsive">
  <table class="table" id='listing_states' data-hook>
    <thead>
      <tr data-hook="states_header">
        <th><%= Spree.t(:name) %></th>
        <th class="text-center"><%= Spree.t(:abbreviation) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @states.each do |state| %>
        <tr id="<%= spree_dom_id state %>" data-hook="states_row">
          <td><%= state.name %></td>
          <td class="text-center"><%= state.abbr %></td>
          <td class="actions actions-2 text-right">
            <%= link_to_edit(state, no_text: true) if can? :edit, state %>
            <%= link_to_delete(state, no_text: true) if can? :delete, state %>
          </td>
        </tr>
      <% end %>
      <% if @states.empty? %>
        <tr><td colspan="3"><%= Spree.t(:none) %></td></tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_backend-4.2.7 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.6 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.5 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.4 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.3.1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.3 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.2 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0.rc5 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0.rc4 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0.rc3 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0.rc2 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0.rc1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.2.0.beta app/views/spree/admin/states/_state_list.html.erb