Delete form on the orders view

This commit is contained in:
mespeche
2013-09-12 12:49:11 +02:00
parent 2163121a1a
commit 024866a445

View File

@@ -18,118 +18,116 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<form action="{url path='/admin/orders/update-values'}" method="post"> <div class="general-block-decorator">
<div class="general-block-decorator"> <table class="table table-striped table-condensed table-left-aligned">
<table class="table table-striped table-condensed table-left-aligned"> <caption class="clearfix">
<caption class="clearfix"> {intl l='Orders'}
{intl l='Orders'} {loop type="auth" name="can_create" roles="ADMIN" permissions="admin.orders.create"}
{loop type="auth" name="can_create" roles="ADMIN" permissions="admin.orders.create"} <a class="btn btn-default btn-primary pull-right" title="{intl l='Create an order'}" href="#creation_dialog">
<a class="btn btn-default btn-primary pull-right" title="{intl l='Create an order'}" href="#creation_dialog"> <span class="glyphicon glyphicon-plus-sign"></span>
<span class="glyphicon glyphicon-plus-sign"></span> </a>
</a> {/loop}
{/loop} </caption>
</caption> <thead>
<thead> <tr>
<tr> <th>{intl l="Order n°"}</th>
<th>{intl l="Order n°"}</th> <th>{intl l="Date & Hour"}</th>
<th>{intl l="Date & Hour"}</th> <th>{intl l="Compagny"}</th>
<th>{intl l="Compagny"}</th> <th>{intl l="Name"}</th>
<th>{intl l="Name"}</th> <th>{intl l="Amount"}</th>
<th>{intl l="Amount"}</th> <th>{intl l="Status"}</th>
<th>{intl l="Status"}</th>
{module_include location='orders_table_header'} {module_include location='orders_table_header'}
<th>{intl l="Actions"}</th> <th>{intl l="Actions"}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td><a href="">01230450123045</a></td> <td><a href="">01230450123045</a></td>
<td>11/09/2013 10:24:31</td> <td>11/09/2013 10:24:31</td>
<td>Thelia</td> <td>Thelia</td>
<td><a href="">Dupont</a></td> <td><a href="">Dupont</a></td>
<td>251 &euro;</td> <td>251 &euro;</td>
<td><span class="label label-success">Paid</span></td> <td><span class="label label-success">Paid</span></td>
{module_include location='orders_table_row'} {module_include location='orders_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path='/admin/order/update/$ID'}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path='/admin/order/update/$ID'}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">01230450123045</a></td> <td><a href="">01230450123045</a></td>
<td>11/09/2013 10:24:31</td> <td>11/09/2013 10:24:31</td>
<td>Thelia</td> <td>Thelia</td>
<td><a href="">Dupont</a></td> <td><a href="">Dupont</a></td>
<td>251 &euro;</td> <td>251 &euro;</td>
<td><span class="label label-danger">Canceled</span></td> <td><span class="label label-danger">Canceled</span></td>
{module_include location='orders_table_row'} {module_include location='orders_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path='/admin/order/update/$ID'}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path='/admin/order/update/$ID'}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><a href="">01230450123045</a></td> <td><a href="">01230450123045</a></td>
<td>11/09/2013 10:24:31</td> <td>11/09/2013 10:24:31</td>
<td>Thelia</td> <td>Thelia</td>
<td><a href="">Dupont</a></td> <td><a href="">Dupont</a></td>
<td>251 &euro;</td> <td>251 &euro;</td>
<td><span class="label label-info">Current</span></td> <td><span class="label label-info">Current</span></td>
{module_include location='orders_table_row'} {module_include location='orders_table_row'}
<td> <td>
<div class="btn-group"> <div class="btn-group">
{loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"} {loop type="auth" name="can_change" roles="ADMIN" permissions="admin.orders.edit"}
<a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path='/admin/order/update/$ID'}"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Edit this order'}" href="{url path='/admin/order/update/$ID'}"><span class="glyphicon glyphicon-edit"></span></a>
{/loop} {/loop}
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"} {loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.orders.delete"}
<a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a> <a class="btn btn-default btn-xs" title="{intl l='Delete this order'}" href="#delete_order_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
{/loop} {/loop}
</div> </div>
</td> </td>
</tr> </tr>
<!-- <tr> <!-- <tr>
<td colspan="3"> <td colspan="3">
<div class="alert alert-info"> <div class="alert alert-info">
{intl l="No mailing template has been created yet. Click the + button to create one."} {intl l="No mailing template has been created yet. Click the + button to create one."}
</div> </div>
</td> </td>
</tr> --> </tr> -->
</tbody> </tbody>
</table> </table>
</div> </div>
</form>
</div> </div>
</div> </div>