haldis/app/templates/orders.html

23 lines
711 B
HTML
Raw Normal View History

{% 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 -%}
{% block container %}
<div class="row">
2015-03-27 23:24:41 +01:00
<div class="col-md-5">
<h3>Open orders:</h3>
2015-03-28 23:06:36 +01:00
{% for order in orders %}
{{ util.render_order(order) }}
{% endfor %}
</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 %}
</div>
</div>
{% endblock %}