Sha256: a6d02ce6f86abbc2d777bd6bf559cf604d4ef32968ecd78688ebc6ab1b30f4f3

Contents?: true

Size: 1.77 KB

Versions: 5

Compression:

Stored size: 1.77 KB

Contents

<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:stock_locations) %>
<% end %>

<% content_for :page_actions do %>
  <ul class="actions inline-menu">
    <li>
      <%= button_link_to Spree.t(:new_stock_location), new_object_url, { :icon => 'icon-plus', :id => 'admin_new_stock_location' } %>
    </li>
    <li>
      <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :icon => 'icon-forward' } %>
    </li>
  </ul>
<% end %>

<table class="index" id='listing_stock_locations' data-hook>
  <colgroup>
    <col style="width: 50%" />
    <col style="width: 15%" />
    <col style="width: 20%" />
    <col style="width: 15%" />
  </colgroup>
  <thead>
    <tr data-hook="stock_locations_header">
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:state) %></th>
      <th><%= Spree.t(:stock_movements) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @stock_locations.each do |stock_location|
         @edit_url = edit_admin_stock_location_path(stock_location)
         @delete_url = admin_stock_location_path(stock_location)
    %>
      <tr id="<%= spree_dom_id stock_location %>" data-hook="stock_location_row" class="<%= cycle('odd', 'even')%>">
        <td><%= stock_location.name %></td>
        <td><span class="state <%= stock_location.active? ? 'active' : 'inactive' %>"><%= stock_location.active? ? 'active' : 'inactive' %></span></td>
        <td><%= link_to Spree.t(:stock_movements), admin_stock_location_stock_movements_path(stock_location.id) %> </td>
        <td class="actions">
          <%= link_to_edit stock_location, :no_text => true %>
          <%= link_to_delete stock_location, :no_text => true %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-2.0.3 app/views/spree/admin/stock_locations/index.html.erb
spree_backend-2.0.2 app/views/spree/admin/stock_locations/index.html.erb
spree_backend-2.0.1 app/views/spree/admin/stock_locations/index.html.erb
spree_backend-2.0.0 app/views/spree/admin/stock_locations/index.html.erb
spree_backend-2.0.0.rc1 app/views/spree/admin/stock_locations/index.html.erb