Sha256: f9fdaa8523a263cc25ed1d885efa44f9a42c5f7a69676b2170082660a5247e75

Contents?: true

Size: 729 Bytes

Versions: 4

Compression:

Stored size: 729 Bytes

Contents

<table class="admin-report" width="545">
  <thead>
    <tr>
      <th><%= t("Name") %></th>
      <th><%= t("Abbreviation") %></th>
      <th><%= t("Action") %></th>
    </tr>
  </thead>
  <tbody>
    <% @states.each do |state| %>
      <tr class="<%= cycle('even', 'odd') %>">
        <td><%=state.name %></td>
        <td><%=state.abbr %></td>
        <td>
          <%=link_to t("Edit"), edit_admin_country_state_url(@country, state) %> |
          <%=link_to t("Delete"), object_url(state), :method => :delete %>
        </td>
      </tr>
    <% end %>
    <% if @states.empty? %>
      <tr><td colspan="3">None.</td></tr>
    <% end %>
  </tbody>
</table>
<%= link_to t("New State"), new_admin_country_state_url(@country) %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.4.0 app/views/admin/states/_state_list.html.erb
spree-0.4.1 app/views/admin/states/_state_list.html.erb
spree-0.5.0 app/views/admin/states/_state_list.html.erb
spree-0.5.1 app/views/admin/states/_state_list.html.erb