haldis/app/templates/orders.html

20 lines
702 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 %}
{% block container %}
<div class="row">
2015-03-27 23:24:41 +01:00
<div class="col-md-5">
<h3>Open orders:</h3>
<ul>
{% for order in orders %}
2015-03-28 00:44:58 +01:00
<li><a href="{{ url_for('.order', id=order.id) }}">{{ order.location.name }}-{{ order.stoptime }}</a></li>
{% endfor %}
</ul>
</div>
2015-03-27 23:24:41 +01:00
<div class="col-md-push-1 col-md-6">
2015-03-28 00:44:58 +01:00
{{ 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>
</div>
</div>
{% endblock %}