haldis/app/templates/locations.html

32 lines
1.2 KiB
HTML
Raw Normal View History

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">
2019-12-05 19:39:35 +01:00
<div class="col-md-push-1 col-md-10 darker locations_locations">
2016-08-01 23:40:04 +02:00
<h3>Locations</h3>
<table class="table table-hover table-condensed">
<thead>
<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>
2019-09-10 02:50:22 +02:00
<td><a href="{{ url_for('general_bp.location', location_id=loc.id) }}">{{ loc.name }}</a></td>
2016-08-01 23:40:04 +02:00
<td>{{ loc.address }}<td>
2020-01-27 00:57:51 +01:00
<td><a href="{{ loc.website }}"><span class="glyphicon glyphicon-link"></span> {{ loc.website }}</a></td>
<td>
{% if not current_user.is_anonymous() %}
<a href="{{ url_for("order_bp.orders", location_id=loc.id) }}" class="btn btn-primary btn-xs">Create order</a>
{% endif %}
</td>
2016-08-01 23:40:04 +02:00
</tr>
{%- endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}