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>
|
2018-04-02 04:49:32 -04:00
|
|
|
{% for order in neworders %}
|
2018-02-25 19:34:00 -05:00
|
|
|
<tr>
|
2018-03-31 20:17:02 -04:00
|
|
|
<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>
|
2018-03-31 20:10:57 -04:00
|
|
|
<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 %}
|
2018-04-02 04:49:32 -04:00
|
|
|
|
|
|
|
{% 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 %}
|
|
|
|
|