show all rescuers in a table

This commit is contained in:
gw3000 2023-06-22 18:05:04 +02:00
parent 2c54de339a
commit b43afc623c
2 changed files with 33 additions and 5 deletions

View file

@ -1,9 +1,37 @@
{% extends "base.html" %}
{% load static %}
{% block content %}
<h3>Übersicht aller Finder</h3>
<h3>Übersicht aller Retter</h3>
<p>
Die Übersicht aller aktiven Retter.
</p>
<p>
<a href="{% url 'rescuer_create' %}" class="btn btn-primary">Einen neuen Retter anlegen</a>
</p>
<p> form </p>
<p>änder und löschen</p>
<table class="table table-striped table-hover" id="t__resuer_all">
<thead>
<tr>
<th>Name</th>
<th>Vorname</th>
<th>Straße</th>
<th>PLZ</th>
<th>Ort</th>
</tr>
</thead>
<tbody>
{% for rescuer in rescuers %}
<tr>
<td>
<a href="{% url 'rescuer_single' rescuer.id %}">{{ rescuer.last_name }}</a>
</td>
<td>{{ rescuer.first_name }}</td>
<td>{{ rescuer.street }} {{ rescuer.street_number }}</td>
<td>{{ rescuer.zip_code }}</td>
<td>{{ rescuer.city }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}