added edit button
All checks were successful
Test Django / Test migration (push) Successful in 55s

Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
This commit is contained in:
Jochen Mehlich 2023-12-20 18:36:31 +01:00
parent 58b43c93bd
commit df543873d2
2 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@
</ul>
</div>
</nav>
<main class="container">
<main class="container pt-5">
{% block content %}{% endblock %}
</main>
</body>

View File

@ -7,17 +7,19 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Beschreibung</th>
<th scope="col">Aktiviert</th>
<th scope="col-4">Name</th>
<th scope="col-4">Beschreibung</th>
<th scope="col-2">Aktiviert</th>
<th scope="col-2">Bearbeiten</th>
</tr>
</thead>
<tbody>
{% for person in persons %}
<tr>
<tr class="align-middle">
<td>{{ person.name }}</td>
<td>{{ person.description }}</td>
<td>{% if person.isActive %} <i class="fa-solid fa-check"></i> {% else %} <i class="fa-solid fa-minus"></i> {% endif %}</td>
<td><a class="btn btn-primary" href="/person/edit/{{person.id}}"><i class="fa-solid fa-pen-to-square"></i></a></td>
</tr>
{% endfor %}
</tbody>