proxadmin/app/templates/admin/list_orders.html

73 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2018-02-25 19:34:00 -05:00
{% extends "base.html" %}
{% block styles %}
{{ super() }}
{% endblock %}
{% block page_content %}
<div class="row">
{% include "admin/admin_tasks.html" %}
<div class="col-md-12">
<div class="panel panel-danger" id="orders">
<div class="panel-heading">Orders</div>
<div class="panel-body"><p>
<div class="no-more-tables">
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
<!--<th>Region</th>-->
<th>User</th>
2018-04-01 17:15:30 -04:00
<th>Region</th>
2018-02-25 19:34:00 -05:00
<th>Recipe</th>
<th>param 1</th>
<th>param 2</th>
<th>param 3</th>
<th>param 4</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for order in neworders %}
2018-02-25 19:34:00 -05:00
<tr>
<td data-title="User"><a href="{{ url_for('panel.dashboard', user_pid=order.user_id) }}">{{ order.owner.email }}</a></td>
2018-04-01 17:15:30 -04:00
<td data-title="Region">{{ order.region.description }}</td>
2018-02-25 19:34:00 -05:00
<td data-title="Recipe"><a href="#" title="{{ order.recipe.description }}">{{ order.recipe.templatefile }}</a></td>
<td data-title="Parameter1">{{ order.parameter1 }}</td>
<td data-title="Parameter2">{{ order.parameter2 }}</td>
<td data-title="Parameter3">{{ order.parameter3 }}</td>
<td data-title="Parameter4">{{ order.parameter4 }}</td>
<td data-title="Status">{{ order.status }}</td>
<td><button class="btn btn-default btn-success" onclick="window.open('{{ url_for('vmanager.vmcreate', orderid=order.pid) }}','_self');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Confirm</button></td>
2018-02-25 19:34:00 -05:00
{% endfor %}
{% for order in oldorders %}
<tr>
<td data-title="User"><a href="{{ url_for('panel.dashboard', user_pid=order.user_id) }}">{{ order.owner.email }}</a></td>
<td data-title="Region">{{ order.region.description }}</td>
<td data-title="Recipe"><a href="#" title="{{ order.recipe.description }}">{{ order.recipe.templatefile }}</a></td>
<td data-title="Parameter1">{{ order.parameter1 }}</td>
<td data-title="Parameter2">{{ order.parameter2 }}</td>
<td data-title="Parameter3">{{ order.parameter3 }}</td>
<td data-title="Parameter4">{{ order.parameter4 }}</td>
<td data-title="Status">{{ order.status }}</td>
<td></td>
{% endfor %}
2018-02-25 19:34:00 -05:00
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
</div>
</div>
{% endblock %}