2015-03-31 20:15:22 +02:00
|
|
|
{% macro render_order(order) -%}
|
|
|
|
<div class="row darker">
|
2019-11-22 07:53:24 +01:00
|
|
|
<div class="col-md-8 col-lg-9 order_data">
|
2015-03-31 20:15:22 +02:00
|
|
|
<h5>{{ order.location.name }}</h5>
|
2019-11-22 07:53:24 +01:00
|
|
|
<b>{{ order.items.count() }} orders</b></p>
|
|
|
|
<p class="time_data">
|
2019-02-15 16:47:02 +01:00
|
|
|
{% if order.stoptime %}
|
2019-11-22 07:53:24 +01:00
|
|
|
<span><b>Closes </b>{{ order.stoptime.strftime("%H:%M") }}</span><span class="time">{{ order.stoptime|countdown }}</span>
|
2019-02-15 16:47:02 +01:00
|
|
|
{% else %}open{% endif %}<br/>
|
2015-03-31 20:15:22 +02:00
|
|
|
</div>
|
2019-11-22 07:53:24 +01:00
|
|
|
<div class="col-md-4 col-lg-3 expand_button_wrapper">
|
|
|
|
<a class="btn btn-primary btn-block align-bottom expand_button" href="{{ url_for('order_bp.order_from_id', order_id=order.id) }}">Expand</a>
|
2015-03-31 20:15:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{%- endmacro %}
|
|
|
|
|
|
|
|
{% macro render_form_field_errors(field) %}
|
|
|
|
{%- if field.errors %}
|
|
|
|
{%- for error in field.errors %}
|
|
|
|
<p class="help-block">{{error}}</p>
|
|
|
|
{%- endfor %}
|
|
|
|
{%- elif field.description -%}
|
|
|
|
<p class="help-block">{{field.description|safe}}</p>
|
|
|
|
{%- endif %}
|
2019-02-15 16:47:02 +01:00
|
|
|
{% endmacro %}
|