Sha256: ef90f0c5c8ae02537d011782ecf4f56d215c6d742345eb0e53b327f97e63bbaf

Contents?: true

Size: 1.1 KB

Versions: 19

Compression:

Stored size: 1.1 KB

Contents

<table class="index" id='listing_states'>
  <thead>
    <tr>
      <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 %>">
        <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"></div>
<p>
  <%= button_link_to t("new_state"), new_admin_country_state_url(@country), {:remote => true,
                                                                             :icon => 'add',
                                                                              :id => 'new_state'} %>
</p>

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/admin/states/_state_list.html.erb
My-Commerce_core-1.1.0 app/views/admin/states/_state_list.html.erb
My-Commerce_core-1.0.0 app/views/admin/states/_state_list.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/states/_state_list.html.erb
MyCommerce-0.0.3 core/app/views/admin/states/_state_list.html.erb
rfcommerce_core-0.0.3 app/views/admin/states/_state_list.html.erb
spree_core-0.60.6 app/views/admin/states/_state_list.html.erb
spree_core-0.60.5 app/views/admin/states/_state_list.html.erb
spree_core-0.50.4 app/views/admin/states/_state_list.html.erb
spree_core-0.60.4 app/views/admin/states/_state_list.html.erb
spree_core-0.50.3 app/views/admin/states/_state_list.html.erb
spree_core-0.60.3 app/views/admin/states/_state_list.html.erb
spree_core-0.60.2 app/views/admin/states/_state_list.html.erb
spree_core-0.60.1 app/views/admin/states/_state_list.html.erb
spree_core-0.60.0 app/views/admin/states/_state_list.html.erb
spree_core-0.60.0.RC1 app/views/admin/states/_state_list.html.erb
spree_core-0.50.2 app/views/admin/states/_state_list.html.erb
spree_core-0.50.1 app/views/admin/states/_state_list.html.erb
spree_core-0.50.0 app/views/admin/states/_state_list.html.erb