2016-08-01 23:40:04 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% set active_page = "locations" -%}
|
|
|
|
|
|
|
|
{% import "utils.html" as util %}
|
|
|
|
|
|
|
|
{% block container %}
|
|
|
|
<div class="row" xmlns="http://www.w3.org/1999/html">
|
|
|
|
<div class="col-md-push-1 col-md-10 darker">
|
|
|
|
<h3>Location: {{ location.name }}</h3>
|
|
|
|
<span class="glyphicon glyphicon-home"></span>: {{ location.address }} <br/>
|
|
|
|
<span class="glyphicon glyphicon-phone"></span>: {{ location.telephone }} <br/>
|
2019-05-30 04:10:47 +02:00
|
|
|
<span class="glyphicon glyphicon-link"></span>: <a href="{{ location.website}}">{{ location.website }}</a> <br/>
|
2019-05-30 23:27:44 +02:00
|
|
|
{% if not current_user.is_anonymous() %}
|
|
|
|
<a href="{{ url_for("order_bp.orders", location_id=location.id) }}" class="btn btn-primary btn-sm">Create order</a>
|
|
|
|
{% endif %}
|
2016-08-01 23:40:04 +02:00
|
|
|
</div>
|
2019-05-30 04:10:47 +02:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2016-08-01 23:40:04 +02:00
|
|
|
<div class="col-md-push-1 col-md-10 darker">
|
|
|
|
<h3 id="order-title">Products</h3>
|
|
|
|
<table class="table table-hover table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr><th>Name</th><th>Price</th></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for prod in location.products -%}
|
|
|
|
<tr>
|
|
|
|
<td>{{ prod.name }}</td>
|
|
|
|
<td>{{ prod.price|euro }}<td>
|
|
|
|
</tr>
|
|
|
|
{%- endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|