2022-12-30 23:41:49 +01:00
|
|
|
{% extends "base/frame.twig" %}
|
|
|
|
{% block stylesheets %}
|
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
<section role="loc-index">
|
|
|
|
<h1>
|
|
|
|
Location Listing
|
|
|
|
</h1>
|
|
|
|
{% if notice is defined %}
|
|
|
|
<div role="system-notice">
|
|
|
|
{{ notice }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if mode == "add" %}
|
|
|
|
<h2>Add New Location</h2>
|
|
|
|
{{ include("forms/add-location.twig") }}
|
2023-01-04 01:08:50 +01:00
|
|
|
{% elseif mode =='bulk-add' %}
|
|
|
|
<h2>Add Multiple Locations</h2>
|
|
|
|
{{ include("forms/bulk-add-location.twig") }}
|
2022-12-30 23:41:49 +01:00
|
|
|
{% elseif mode == "edit" %}
|
|
|
|
<h2>Editing
|
|
|
|
{{ location.name }}</h2>
|
|
|
|
{{ include("forms/edit-location.twig") }}
|
|
|
|
{% else %}
|
|
|
|
<h2>Take care. These are bad places.</h2>
|
2023-01-04 01:08:50 +01:00
|
|
|
<a href="/den/locations/add">Add Location</a>
|
|
|
|
|
|
|
|
|
<a href="/den/locations/bulk-add">Add Multiple Locations</a>
|
|
|
|
<br>
|
|
|
|
<h3>Bad Spaces</h3>
|
|
|
|
{% for location in list.locations %}
|
2022-12-30 23:41:49 +01:00
|
|
|
<sup>ID:{{ location.id }}</sup>
|
2023-01-04 01:08:50 +01:00
|
|
|
<a href="/den/locations/edit/{{ location.uuid }}">
|
2022-12-30 23:41:49 +01:00
|
|
|
|
2023-01-04 01:08:50 +01:00
|
|
|
{{ location.name }}</a><br/>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|