Sha256: fe3d6f8f67ef757560d15af5ace62e7b8671f1006b39b45219238bf9aab64ab0
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 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' %> <%= 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-0.70.0.rc2 | app/views/admin/states/_state_list.html.erb |
spree_core-0.70.RC1 | app/views/admin/states/_state_list.html.erb |