mirror of
https://github.com/HS-Flensburg-Klein/hausarbeit-hikmat_galan_neumann_stark_becker
synced 2025-04-04 21:43:31 +00:00
35 lines
904 B
HTML
35 lines
904 B
HTML
{% extends 'base.html' %}
|
|
|
|
|
|
{% block title %}Locations{% endblock %}
|
|
|
|
{% block header %}<h1>Locations</h1>{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<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 %}
|