55 lines
1.9 KiB
Smarty
55 lines
1.9 KiB
Smarty
<h2>Basket</h2>
|
|
|
|
{if $basket->count()}
|
|
<form method="post" action="{$base_uri}basket/do/edit/">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<input id="list_select_all" class="select_all" type="checkbox" />
|
|
Remove
|
|
</th>
|
|
<th>Item</th>
|
|
<th>Size</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$basket->getItems() item=item}
|
|
<tr>
|
|
<td><input type="checkbox" class="list_select_all" name="items[]" value="{$item|escape:html}" /></td>
|
|
<td>{$item|escape:html}</td>
|
|
<td>{$basket->size($item)|formatFilesize|escape:html}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2">
|
|
<input type="submit" class="btn danger" name="remove-items" value="Remove from Basket" />
|
|
<input type="submit" class="btn danger" name="clear" value="Clear Basket" />
|
|
<button id="basket_list_copy" class="btn secondary pull-right">Copy List</button>
|
|
</td>
|
|
<td>
|
|
{$basket->totalSize()|formatFilesize|escape:html}
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
{else}
|
|
<em>There are no items in your basket at the moment.</em>
|
|
{/if}
|
|
<div id="basket_list" class="modal hide fade">
|
|
<div class="modal-header">
|
|
<a href="#" class="close">×</a>
|
|
<h3>Basket Text List</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<textarea id="basket_list_text" class="xxlarge" rows="15"></textarea>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="basket_list_close" class="btn primary">Close</button>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
ml.basket.init();
|
|
</script> |