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> </ul>
</div> </div>
</nav> </nav>
<main class="container"> <main class="container pt-5">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</main> </main>
</body> </body>

View File

@ -7,17 +7,19 @@
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th scope="col">Name</th> <th scope="col-4">Name</th>
<th scope="col">Beschreibung</th> <th scope="col-4">Beschreibung</th>
<th scope="col">Aktiviert</th> <th scope="col-2">Aktiviert</th>
<th scope="col-2">Bearbeiten</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for person in persons %} {% for person in persons %}
<tr> <tr class="align-middle">
<td>{{ person.name }}</td> <td>{{ person.name }}</td>
<td>{{ person.description }}</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>{% 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> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>