Sha256: e0515ab2c95017be30e3d23fd39a2b7e80d3e94a0d921b595caca7c5a3a6088e

Contents?: true

Size: 806 Bytes

Versions: 4

Compression:

Stored size: 806 Bytes

Contents

<table class="index">
  <thead>
    <tr>
      <th><%= t("name") %></th>
      <th><%= t("abbreviation") %></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @states.each do |state| %>
      <tr>
        <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) %> &nbsp;
          <%=link_to_with_icon 'delete', t("delete"), object_url(state), :method => :delete %>
        </td>
      </tr>
    <% end %>
    <% if @states.empty? %>
      <tr><td colspan="3"><%= t(:none) %></td></tr>
    <% end %>
  </tbody>
</table>
<div id="new_state"></div>
<p>
  <%= button_link_to t("new_state"), new_admin_country_state_url(@country), {:remote => true, :icon => 'add'} %>
</p>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-0.30.2 app/views/admin/states/_state_list.html.erb
spree_core-0.30.1 app/views/admin/states/_state_list.html.erb
spree_core-0.30.0 app/views/admin/states/_state_list.html.erb
spree_core-0.30.0.beta1 app/views/admin/states/_state_list.html.erb