Holger Frey
7 years ago
3 changed files with 126 additions and 0 deletions
@ -0,0 +1,66 @@
@@ -0,0 +1,66 @@
|
||||
{% extends "ordr2:templates/layout.jinja2" %} |
||||
{% import 'ordr2:templates/macros.jinja2' as macros with context %} |
||||
|
||||
{% block subtitle %} Orders | Confirm Delete {% endblock subtitle %} |
||||
|
||||
{% block content %} |
||||
<div class="content controls"> |
||||
|
||||
<div class="container-fluid"> |
||||
<div class="row-fluid"> |
||||
<div class="page-controls"> |
||||
<h1>Delete Order{{ 's' if orders|length > 1 }}</h1> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="row"> |
||||
<div class="span10"> |
||||
|
||||
<div class="action-header"> |
||||
<h3>The following order{{ 's' if orders|length > 1 }} will be deleted:</h3> |
||||
</div> |
||||
|
||||
<form action="{{ request.resource_url(context, 'delete') }}" method="POST" class="action"> |
||||
<input type="hidden" name="csrf_token" value="{{get_csrf_token()}}"> |
||||
|
||||
<table class="table"> |
||||
<thead> |
||||
<th>Date Created</th> |
||||
<th>CAS / Description</th> |
||||
<th>Vendor</th> |
||||
<th>Placed by</th> |
||||
<th>Status</th> |
||||
</thead> |
||||
|
||||
<tbody> |
||||
{% for order in orders %} |
||||
<tr> |
||||
<td> |
||||
<input type="hidden" name="order" value="{{ order.id }}"> |
||||
{{ order.created_date }} |
||||
</td> |
||||
<td>{{ order.cas_description }} </td> |
||||
<td>{{ order.vendor }} </td> |
||||
<td>{{ order.created_by }} </td> |
||||
<td>{{ macros.colored_status(order.status) }} </td> |
||||
</tr> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
|
||||
<fieldset class="form-actions"> |
||||
<div class="right"> |
||||
<button name="delete" type="submit" value="submit" class="btn btn-large btn-danger">Delete Order{{ 's' if orders|length > 1 }}</button> |
||||
<button name="cancel" type="submit" value="cancel" class="btn btn-large">Cancel</button> |
||||
</div> |
||||
</fieldset> |
||||
|
||||
</form> |
||||
|
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
|
||||
</div> |
||||
{% endblock content %} |
Reference in new issue