2015-03-27 21:57:37 +01:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% set active_page = "orders" -%}
|
|
|
|
|
2015-03-27 23:24:41 +01:00
|
|
|
{% import "bootstrap/wtf.html" as wtf %}
|
2015-03-28 23:06:36 +01:00
|
|
|
{% import "utils.html" as util -%}
|
|
|
|
|
2015-03-27 21:57:37 +01:00
|
|
|
{% block container %}
|
|
|
|
<div class="row">
|
2015-03-27 23:24:41 +01:00
|
|
|
<div class="col-md-5">
|
2015-03-27 21:57:37 +01:00
|
|
|
<h3>Open orders:</h3>
|
2015-03-28 23:06:36 +01:00
|
|
|
{% for order in orders %}
|
|
|
|
{{ util.render_order(order) }}
|
|
|
|
{% endfor %}
|
2015-03-27 21:57:37 +01:00
|
|
|
</div>
|
2015-03-28 20:38:15 +01:00
|
|
|
{% if not current_user.is_anonymous() %}
|
2015-03-27 23:24:41 +01:00
|
|
|
<div class="col-md-push-1 col-md-6">
|
2015-03-28 23:06:36 +01:00
|
|
|
<h3>Create new order:</h3>
|
|
|
|
{{ wtf.quick_form(form, action=url_for('.order_create'), button_map={'submit_button': 'primary'}, form_type='horizontal') }}
|
2015-03-27 23:24:41 +01:00
|
|
|
</div>
|
2015-03-28 20:38:15 +01:00
|
|
|
{% endif %}
|
2015-03-27 21:57:37 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|