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