silverstripe-webpack/app/templates/SilverShop/Includes/OrderHistory.ss

29 lines
998 B
Scheme
Raw Normal View History

<table class="table table-bordered orderhistory">
<thead>
<tr>
<th><%t SilverShop\Model\Order.db_Reference 'Reference' %></th>
<th><%t SilverShop\Model\Order.Date 'Date' %></th>
<th><%t SilverShop\Model\Order.has_many_Items 'Items' %></th>
<th><%t SilverShop\Model\Order.Total 'Total' %></th>
<th><%t SilverShop\Model\Order.db_Status 'Status' %></th>
<th></th>
</tr>
</thead>
<tbody>
<% loop $PastOrders %>
<tr class="{$Status}">
<td>$Reference</td>
<td>$Created.Nice</td>
<td>$Items.Quantity</td>
<td>$Total.Nice</td>
<td>$StatusI18N</td>
2018-08-26 12:46:03 +02:00
<td class="text-right">
<a class="btn btn-mini btn-primary" href="$Link">
<i class="icon icon-white icon-eye-open fa fa-eye"></i> <%t SilverShop\Generic.View 'view' %>
</a>
</td>
</tr>
<% end_loop %>
</tbody>
</table>