Sha256: c3a49dc63e1b07d3752fb6b34189a36828230c115056c3e649fd16f8bf6af360

Contents?: true

Size: 751 Bytes

Versions: 14

Compression:

Stored size: 751 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">None.</td></tr>
    <% end %>
  </tbody>
</table>

<p>
  <%= button_link_to t("new_state"), new_admin_country_state_url(@country), :icon => 'add' %>
</p>

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 app/views/admin/states/_state_list.html.erb
spree-0.10.0.beta vendor/extensions/theme_default/app/views/admin/states/_state_list.html.erb
spree-enriquez-0.9.4 app/views/admin/states/_state_list.html.erb
spree-0.9.4 app/views/admin/states/_state_list.html.erb
spree-0.9.3 app/views/admin/states/_state_list.html.erb
spree-0.9.2 app/views/admin/states/_state_list.html.erb
spree-0.9.1 app/views/admin/states/_state_list.html.erb
spree-0.9.0 app/views/admin/states/_state_list.html.erb
spree-0.8.4 app/views/admin/states/_state_list.html.erb
spree-0.8.5 app/views/admin/states/_state_list.html.erb
spree-0.8.0 app/views/admin/states/_state_list.html.erb
spree-0.8.1 app/views/admin/states/_state_list.html.erb
spree-0.8.2 app/views/admin/states/_state_list.html.erb
spree-0.8.3 app/views/admin/states/_state_list.html.erb