Sha256: 292f01dac8f214256269f815d05bb7b7fd6e1e62060469cdb8f398fed8d133e5

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

<% if form.object.new_record? %>
N/A
<% else -%>
<table cellpadding="0" cellspacing="0">
	<tr>
		<td>Status</td>
		<td><%= form.object.status %></td>
	</tr>
	<tr>
		<td>Subtotal</td>
		<td>$<%= "%.2f" % form.object.line_items.inject(0) { |subtotal, li| subtotal + li.total } %></td>
	</tr>
	<tr>
		<td>Shipping</td>
		<td>$<%= "%.2f" % form.object.shipments.inject(0) { |shipping, shipment| shipping + shipment.total } %></td>
	</tr>
	<tr>
		<td>Tax</td>
		<td>$<%= "%.2f" % form.object.tax_charge %></td>
	</tr>
	<tr>
		<td>Order Total</td>
		<td>$<%= "%.2f" % form.object.total %></td>
	</tr>
	<tr>
		<td>Total Due</td>
		<td>$<%= "%.2f" % form.object.total_due %></td>
	</tr>
	<tr>
		<td>Created At</td>
		<td><%= form.object.created_at.strftime("%m-%d-%Y") %></td>
	</tr>
	<tr>
		<td>Actions</td>
		<td>
			<ul>
				<li><%= link_to "Send Email Confirmation", piggybak.email_order_url(form.object.id) %></li>
				<li><%= link_to "View as Text", piggybak.download_order_url(form.object.id) %></li>
				<li><%= link_to "Cancel Order", piggybak.cancel_order_url(form.object.id) %> (marks payments as refunded, marks order as cancelled)</li>
			</ul>
		</td>
	</tr>
</table>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
piggybak-0.3.2 app/views/rails_admin/main/_order_details.html.erb
piggybak-0.3.1 app/views/rails_admin/main/_order_details.html.erb
piggybak-0.3.0 app/views/rails_admin/main/_order_details.html.erb