Sha256: 726f43cc1a86acefa14918ae8b236f1e4a28f1bcdd4e8cfd0669b694cef0d619

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

<% content_for :page_title do %>
    <%= link_to Spree.t(:stock_transfers), spree.admin_stock_transfers_url %> /
    <%= @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_name) %></legend>
<div class="table-responsive">
  <table class="table table-bordered">
    <tr>
      <td width="30%"><strong><%= Spree.t(:created_at) %></strong></td>
      <td><%= pretty_time(@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>
</div>
  <% 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

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-4.2.0.rc4 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-4.2.0.rc3 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-4.2.0.rc2 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-4.2.0.rc1 app/views/spree/admin/stock_transfers/show.html.erb
spree_backend-4.2.0.beta app/views/spree/admin/stock_transfers/show.html.erb