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">
|
|
|
|
<div class="col-md-push-1 col-md-10 darker">
|
|
|
|
<h3>Locations</h3>
|
|
|
|
<table class="table table-hover table-condensed">
|
|
|
|
<thead>
|
2019-05-30 04:10:47 +02:00
|
|
|
<tr><th>Name</th><th>Address</th><th></th><th></th><th></th></tr>
|
2016-08-01 23:40:04 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for loc in locations -%}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ url_for('location', id=loc.id) }}">{{ loc.name }}</a></td>
|
|
|
|
<td>{{ loc.address }}<td>
|
|
|
|
<td><a href="{{ loc.website}}"><span class="glyphicon glyphicon-link"></span></a></td>
|
2019-05-30 04:10:47 +02:00
|
|
|
<td>
|
|
|
|
<a href="{{ url_for("order_bp.orders", location_id=loc.id) }}" class="btn btn-primary btn-xs">Create order</a>
|
|
|
|
</td>
|
2016-08-01 23:40:04 +02:00
|
|
|
</tr>
|
|
|
|
{%- endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|