You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
829 B
HTML
32 lines
829 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>Locations</h1>
|
|
|
|
<table class="location-list">
|
|
<tr>
|
|
<td colspan="99" class="centered-td">
|
|
<a class="btn" href="{% url 'mensaviewer:location_create' %}">New Location</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>City</th>
|
|
<th>ID</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
{% for location in object_list %}
|
|
<tr>
|
|
<td><a href="{% url 'mensaviewer:location_detail' location.pk %}">{{ location.name }}</a></td>
|
|
<td>{{ location.city }}</td>
|
|
<td class="fit-width">{{ location.mensa_id }}</td>
|
|
<td class="fit-width"><a href="{% url 'mensaviewer:location_update' location.pk %}">Edit</a></td>
|
|
<td class="fit-width"><a href="{% url 'mensaviewer:location_delete' location.pk %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|