You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

71 lines
2.2 KiB

<div class='toolbar order-links'>
<%= button_link_to t("resend"), resend_admin_order_url(@order), :method => :post, :icon => 'send-email' %>
<%= event_links %>
</div>
<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Order Details"} %>
<%= render :partial => 'admin/shared/order_details', :locals => {:order => @order} -%>
<% unless @order.payments.empty? %>
<div class='adr'>
<%# look at the most recent (= up to date) payment %>
<% payment = @order.payments.last %>
<% if payment.class == "CreditcardPayment" %>
<h4><%= link_to t("bill_address"), edit_admin_order_creditcard_payment_url(@order, payment) %></h4>
<%= render :partial => 'admin/shared/address', :locals => {:address => @order.bill_address} %>
<% else %>
<% url = edit_admin_order_paypal_payment_url(@order) %> <%#, payment) %>
<h4><%= link_to t("edit_paypal_info"), edit_admin_order_paypal_payment_url(@order, payment) %></h4>
<% end %>
</div>
<% end %>
<% if @order.ship_address %>
<div class='adr'>
<h4><%= link_to t("ship_address"), edit_admin_order_shipment_url(@order, @order.shipments.last) %></h4>
<%= render :partial => 'admin/shared/address', :locals => {:address => @order.ship_address} %>
</div>
<% end %>
<hr />
<table class="index">
<tr>
<th><%= t("email") %></th>
</tr>
<tr>
<td><%= @order.email %></td>
</tr>
</table>
<% unless @order.special_instructions.blank? %>
<table class="index">
<tr>
<th><%= t("shipping_instructions") %></th>
</tr>
<tr>
<td><pre><%= @order.special_instructions %></pre></td>
</tr>
</table>
<% end %>
<h4><%= t('history') %></h4>
<table class="index">
<tr>
<th><%= t("event") %></th>
<th><%= t("user") %></th>
<th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
</tr>
<% @order.state_events.sort.each do |event| %>
<tr>
<td><%=t("#{event.name}") %></td>
<td><%=event.user.email if event.user %></td>
<td><%=event.created_at.to_s(:date_time24) %></td>
</tr>
<% end %>
<% if @order.state_events.empty? %>
<tr>
<td colspan="3"><%= t("none_available") %></td>
</tr>
<% end %>
</table>