Compare commits

...

3 Commits
main ... dev

Author SHA1 Message Date
Jochen Mehlich
df543873d2 added edit button
All checks were successful
Test Django / Test migration (push) Successful in 55s
Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
2023-12-20 18:36:31 +01:00
Jochen Mehlich
58b43c93bd added checks if user is activated in person overview
All checks were successful
Test Django / Test migration (push) Successful in 42s
Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
2023-12-20 18:30:51 +01:00
Jochen Mehlich
e9ccf8131a added font awesome
All checks were successful
Test Django / Test migration (push) Successful in 49s
Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
2023-12-20 18:24:42 +01:00
4 changed files with 14 additions and 6 deletions

View File

@ -39,6 +39,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'bootstrap5',
'fontawesomefree',
'sourcePerson'
]

View File

@ -5,6 +5,7 @@ django-bootstrap-v5==1.0.11
django-browser-reload==1.12.1
django-shortcuts==1.6
djangorestframework==3.14.0
fontawesomefree==6.5.1
include==0.2.2
mysqlclient==2.2.0
pytz==2023.3.post1

View File

@ -1,11 +1,15 @@
{% load bootstrap5 %}
{% bootstrap_css %}
{% bootstrap_javascript %}
{% load static %}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="{% static 'fontawesomefree/js/fontawesome.js' %}"></script>
<script src="{% static 'fontawesomefree/js/solid.js' %}"></script>
<script src="{% static 'fontawesomefree/js/brands.js' %}"></script>
<title>{% block title %} Quote Me {% endblock %}</title>
</head>
<body>
@ -24,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>{{ person.isActive}}</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>