2015-03-31 20:15:22 +02:00
|
|
|
{% macro render_order(order) -%}
|
2020-08-14 04:57:02 +02:00
|
|
|
<div class="row order_row">
|
2022-10-27 21:23:13 +02:00
|
|
|
<div class="col-md-8 col-lg-9 order_data">
|
2020-02-29 17:23:20 +01:00
|
|
|
<h5>{{ order.location_name }}</h5>
|
2022-10-27 21:23:13 +02:00
|
|
|
<b class="amount_of_orders">{{ order.items.count() }} items ordered</b></p>
|
2020-02-29 17:23:20 +01:00
|
|
|
<p class="time_data">
|
|
|
|
{% if order.stoptime %}
|
2020-03-05 00:37:16 +01:00
|
|
|
<span><b>Closes </b>{{ order.stoptime.strftime("%H:%M") }}</span>{{ order.stoptime|countdown }}
|
2020-02-29 17:23:20 +01:00
|
|
|
{% else %}open{% endif %}<br/>
|
|
|
|
</div>
|
2022-10-27 21:23:13 +02:00
|
|
|
<div class="col-md-4 col-lg-3 expand_button_wrapper">
|
2022-04-20 02:05:10 +02:00
|
|
|
<a class="btn btn-primary btn-block align-bottom expand_button" href="{{ url_for('order_bp.order_from_slug', order_slug=order.slug) }}">Expand</a>
|
2020-02-29 17:23:20 +01:00
|
|
|
</div>
|
2015-03-31 20:15:22 +02:00
|
|
|
</div>
|
|
|
|
{%- endmacro %}
|
|
|
|
|
|
|
|
{% macro render_form_field_errors(field) %}
|
|
|
|
{%- if field.errors %}
|
2020-02-29 17:23:20 +01:00
|
|
|
{%- for error in field.errors %}
|
|
|
|
<p class="help-block">{{error}}</p>
|
|
|
|
{%- endfor %}
|
2015-03-31 20:15:22 +02:00
|
|
|
{%- elif field.description -%}
|
2020-02-29 17:23:20 +01:00
|
|
|
<p class="help-block">{{field.description|safe}}</p>
|
2015-03-31 20:15:22 +02:00
|
|
|
{%- endif %}
|
2019-02-15 16:47:02 +01:00
|
|
|
{% endmacro %}
|