{% extends "base/frame.twig" %}
{% block stylesheets %}
{% endblock %}
{% block main %}
Location Listing
{% if notice is defined %}
{{ notice }}
{% endif %}
{% if mode == "add" %}
Add New Location
{{ include("forms/add-location.twig") }}
{% elseif mode == "edit" %}
Editing
{{ location.name }}
{{ include("forms/edit-location.twig") }}
{% else %}
Take care. These are bad places.
{% for location in list.locations %}
ID:{{ location.id }}
{{ location.name }}
{% endfor %}
{% endif %}
{% endblock %}