74 lines
2.0 KiB
HTML
74 lines
2.0 KiB
HTML
{% extends "nav.html" %}
|
|
|
|
{% block content %}
|
|
<section class="section">
|
|
<div class="container">
|
|
<div class="level">
|
|
<div class="level-left">
|
|
<h3 class="title is-3">
|
|
Veranstaltungsorte
|
|
</h3>
|
|
</div>
|
|
<div class="level-right">
|
|
{% if user.role == Role::Admin %}
|
|
<a class="button is-link is-light" hx-boost="true" href="/area/new">
|
|
<span class="icon">
|
|
<svg class="feather">
|
|
<use href="/static/feather-sprite.svg#plus-circle" />
|
|
</svg>
|
|
</span>
|
|
<span>Neuen Bereich anlegen</span>
|
|
</a>
|
|
{% endif %}
|
|
<a class="button is-link is-light" hx-boost="true" href="/locations/new">
|
|
<span class="icon">
|
|
<svg class="feather">
|
|
<use href="/static/feather-sprite.svg#plus-circle" />
|
|
</svg>
|
|
</span>
|
|
<span>Neuen Ort anlegen</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
{% if grouped_locations.len() == 0 %}
|
|
<div class="box">
|
|
<h5 class="title is-5">keine Bereiche gefunden</h5>
|
|
</div>
|
|
{% else %}
|
|
{% for gl in grouped_locations %}
|
|
<div class="box">
|
|
<h5 class="title is-5">Bereich {{ gl.0.name }}</h5>
|
|
{% for l in gl.1 %}
|
|
<div class="level">
|
|
<div clas="level-left">
|
|
<em>{{ l.name }}</em>
|
|
</div>
|
|
<div clas="level-right">
|
|
<a class="button is-primary is-light">
|
|
<span class="icon">
|
|
<svg class="feather">
|
|
<use href="/static/feather-sprite.svg#edit" />
|
|
</svg>
|
|
</span>
|
|
<span>Bearbeiten</span>
|
|
</a>
|
|
<a class="button is-danger is-light">
|
|
<span class="icon">
|
|
<svg class="feather">
|
|
<use href="/static/feather-sprite.svg#x-circle" />
|
|
</svg>
|
|
</span>
|
|
<span>Löschen</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock %}
|