Sha256: 6488e8fec23438fecfd6d73fb6693a20ef73bb63927a740262dd7e2563f50db8

Contents?: true

Size: 1.04 KB

Versions: 19

Compression:

Stored size: 1.04 KB

Contents

<table class="index" id='listing_states' data-hook>
  <thead>
    <tr data-hook="states_header">
      <th><%= t(:name) %></th>
      <th><%= t(:abbreviation) %></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @states.each do |state|
         @edit_url = admin_country_state_path(@country, state)
         @delete_url = admin_country_state_path(@country, state)
    %>
      <tr id="<%= dom_id state %>" data-hook="states_row">
        <td><%= state.name %></td>
        <td><%= state.abbr %></td>
        <td class="actions">
          <%= link_to_with_icon 'edit', t(:edit), edit_admin_country_state_url(@country, state), :class => 'edit' %>
          &nbsp;
          <%= link_to_delete state %>
        </td>
      </tr>
    <% end %>
    <% if @states.empty? %>
      <tr><td colspan="3"><%= t(:none) %></td></tr>
    <% end %>
  </tbody>
</table>
<div id="new_state" data-hook></div>
<p data-hook="buttons">
  <%= button_link_to t(:new_state), new_admin_country_state_url(@country), {:remote => true, :icon => 'add', :id => 'new_state_link'} %>
</p>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.6 app/views/spree/admin/states/_state_list.html.erb
spree_core-0.70.7 app/views/admin/states/_state_list.html.erb
spree_core-0.70.6 app/views/admin/states/_state_list.html.erb
spree_core-1.0.4 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.3 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.2 app/views/spree/admin/states/_state_list.html.erb
spree_core-0.70.5 app/views/admin/states/_state_list.html.erb
spree_core-1.0.1 app/views/spree/admin/states/_state_list.html.erb
spree_core-0.70.4 app/views/admin/states/_state_list.html.erb
spree_core-1.0.0 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/states/_state_list.html.erb
spree_core-1.0.0.rc1 app/views/spree/admin/states/_state_list.html.erb
spree_core-0.70.3 app/views/admin/states/_state_list.html.erb
spree_core-0.70.2 app/views/admin/states/_state_list.html.erb
spree_core-0.70.1 app/views/admin/states/_state_list.html.erb
spree_core-0.70.0 app/views/admin/states/_state_list.html.erb