Sha256: b65b9be02815f131c71b08488e5dc59a8206371f113b95a1d4fb833c6450d55e

Contents?: true

Size: 1.01 KB

Versions: 12

Compression:

Stored size: 1.01 KB

Contents

<div id="new_state" data-hook></div>
<div class="table-responsive border rounded bg-white">
  <table class="table" id='listing_states' data-hook>
    <thead class="text-muted">
      <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">
            <span class="d-flex justify-content-end">
              <%= link_to_edit(state, no_text: true) if can? :edit, state %>
              <%= link_to_delete(state, no_text: true) if can? :delete, state %>
            </span>
          </td>
        </tr>
      <% end %>
      <% if @states.empty? %>
        <tr><td colspan="3"><%= Spree.t(:none) %></td></tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.8.3 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.8.2 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.8.1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.7.2 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.6.2 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.7.1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.7.0 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.6.1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.6.0 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.5.1 app/views/spree/admin/states/_state_list.html.erb
spree_backend-4.5.0 app/views/spree/admin/states/_state_list.html.erb