Sha256: f4a32aa4d8b677beddc29906b406e7c4ad874a5249c4a1b69dc0dc0bf572332c

Contents?: true

Size: 1.11 KB

Versions: 21

Compression:

Stored size: 1.11 KB

Contents

<table class="index" id='listing_states' data-hook>
  <colgroup>
    <col style="width: 70%" />
    <col style="width: 15%" />
    <col style="width: 15%" />
  </colgroup>
  <thead>
    <tr data-hook="states_header">
      <th><%= Spree::State.human_attribute_name(:name) %></th>
      <th><%= Spree::State.human_attribute_name(:abbr) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @states.each do |state| %>
      <tr id="<%= spree_dom_id state %>" data-hook="states_row" class="<%= cycle('odd', 'even')%>">
        <td><%= state.name %></td>
        <td class="align-center"><%= state.abbr %></td>
        <td class="actions">
          <% if can?(:update, state) %>
            <%= link_to_with_icon 'edit', Spree.t('actions.edit'), edit_admin_country_state_url(@country, state), :no_text => true %>
          <% end %>
          <% if can?(:destroy, state) %>
            <%= link_to_delete state, :no_text => true %>
          <% end %>
        </td>
      </tr>
    <% end %>
    <% if @states.empty? %>
      <tr><td colspan="3"><%= Spree.t(:none) %></td></tr>
    <% end %>
  </tbody>
</table>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.0.3 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.4.2 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.3.2 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.0.2 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.4.1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.1.0 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.0.1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.0.0 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.4.0 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.3.1 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.3.0 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/states/_state_list.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/states/_state_list.html.erb