Sha256: 73e04aedf706e89aca61c7de71c4fbc274071f676e2457b9440303d67975bc54

Contents?: true

Size: 1.45 KB

Versions: 15

Compression:

Stored size: 1.45 KB

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::StockTransfer) %> (<%= @stock_transfer.number %>)
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :icon => 'add', :class => 'btn-success' } %>
<% end if can? :create, Spree::StockTransfer %>

<fieldset>
  <legend><%= Spree.t(:stock_transfer) %></legend>

  <table class="table table-bordered">
    <tr>
      <td width="30%"><strong><%= Spree.t(:created_at) %></strong></td>
      <td><%= @stock_transfer.created_at %></td>
    </tr>
    <% if @stock_transfer.reference.present? %>
      <tr>
        <td><strong><%= Spree.t(:reference) %></strong></td>
        <td><%= @stock_transfer.reference %></td>
      </tr>
    <% end %>
  </table>

  <% if @stock_transfer.source_movements.present? %>
    <fieldset>
      <legend id="stock-location-source">
        <%= Spree.t(:source) %> / <%= @stock_transfer.source_location.name %>
      </legend>
      <%= render :partial => 'stock_movements', :object => @stock_transfer.source_movements %>
    </fieldset>
  <% end %>

  <% if @stock_transfer.destination_movements.present? %>
    <fieldset>
      <legend id="stock-location-destination">
        <%= Spree.t(:destination) %> / <%= @stock_transfer.destination_location.name %>
      </legend>
      <%= render :partial => 'stock_movements', :object => @stock_transfer.destination_movements %>
    </fieldset>
  <% end %>

</fieldset>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.9 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.1.0.rc1 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.8 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.7 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.6 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.5 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.4 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.3 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.2 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.1 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.0 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/stock_transfers/show.html.erb