app/views/spree/admin/stock_transfers/show.html.erb in spree_backend-2.4.10 vs app/views/spree/admin/stock_transfers/show.html.erb in spree_backend-3.0.0.rc1
- old
+ new
@@ -1,49 +1,41 @@
-<%= render 'spree/admin/shared/configuration_menu' %>
-
<% content_for :page_title do %>
- <%= Spree.t('stock_transfer') %> (<%= @stock_transfer.number %>)
+ <%= Spree::StockTransfer.model_name.human(count: :many) %> (<%= @stock_transfer.number %>)
<% end %>
<% content_for :page_actions do %>
- <li>
- <%= button_link_to Spree.t(:back_to_stock_transfers_list), admin_stock_transfers_path, :icon => 'arrow-left' %>
- </li>
- <li>
- <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :icon => 'forward' } %>
- </li>
+ <%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { :icon => 'add', :class => 'btn-success' } %>
<% end %>
-<fieldset class="no-border-bottom">
- <legend align="center"><%= Spree.t(:stock_transfer) %></legend>
+<fieldset>
+ <legend><%= Spree.t(:stock_transfer) %></legend>
- <div class="alpha six columns">
- <div class="field">
- <label><%= Spree.t(:reference) %></label>
- <div class="value"><%= @stock_transfer.reference %></div>
- </div>
- </div>
+ <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>
- <div class="omega six columns">
- <div class="field">
- <label><%= Spree.t(:created_at) %></label>
- <div class="value"><%= @stock_transfer.created_at %></div>
- </div>
- </div>
-
<% if @stock_transfer.source_movements.present? %>
- <fieldset class="no-border-bottom">
+ <fieldset>
<legend id="stock-location-source">
- <%= Spree.t(:source) %> <i class="fa fa-arrow-right"></i> <%= @stock_transfer.source_location.name %>
+ <%= 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 class="no-border-bottom">
+ <fieldset>
<legend id="stock-location-destination">
- <%= Spree.t(:destination) %> <i class="fa fa-arrow-right"></i> <%= @stock_transfer.destination_location.name %>
+ <%= Spree.t(:destination) %> / <%= @stock_transfer.destination_location.name %>
</legend>
<%= render :partial => 'stock_movements', :object => @stock_transfer.destination_movements %>
</fieldset>
<% end %>