3410abd70a
Now that full-text searching is set up in the DB, the next step is data population. The adding and editing templates were added as long as routes and base functionality to add single locations. Adding works and editing is almost there but both still need to cleaned up. The basic plumbing will be completed and then the tweaking to account for roles and login status for the sake of security. Part 2 will include clean up and and bulk uploads through the use of CSV files.
35 lines
864 B
Twig
35 lines
864 B
Twig
{% 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") }}
|
|
{% elseif mode == "edit" %}
|
|
<h2>Editing
|
|
{{ location.name }}</h2>
|
|
{{ include("forms/edit-location.twig") }}
|
|
{% else %}
|
|
<h2>Take care. These are bad places.</h2>
|
|
{% for location in list.locations %}
|
|
<a href="/den/locations/edit/{{ location.uuid }}">
|
|
<sup>ID:{{ location.id }}</sup>
|
|
{{ location.name }}</a><br/>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
</section>
|
|
{% endblock %}
|