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: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-24 04:59:51 +01:00
|
|
|
Page
|
|
|
|
{{ options.curentPage }}
|
|
|
|
of
|
|
|
|
{{ options.list.total }}<br>
|
|
|
|
{% for location in options.list.locations %}
|
|
|
|
<sup>ID:{{ location.id }}</sup>
|
|
|
|
<a href="/den/locations/modify/edit/{{ location.uuid }}">
|
|
|
|
{{ location.name }}</a><br/>
|
|
|
|
{% endfor %}
|
|
|
|
<a href="/den/locations/page/{{ options.prevPage }}">Previous</a>
|
|
|
|
<a href="/den/locations/page/{{ options.nextPage }}">Next</a>
|
|
|
|
{% endif %}
|
2022-12-30 23:41:49 +01:00
|
|
|
|
2023-01-04 01:08:50 +01:00
|
|
|
|
2023-01-24 04:59:51 +01:00
|
|
|
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|