Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df543873d2 | ||
|
|
58b43c93bd | ||
|
|
e9ccf8131a |
@ -39,6 +39,7 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'bootstrap5',
|
'bootstrap5',
|
||||||
|
'fontawesomefree',
|
||||||
'sourcePerson'
|
'sourcePerson'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -5,6 +5,7 @@ django-bootstrap-v5==1.0.11
|
|||||||
django-browser-reload==1.12.1
|
django-browser-reload==1.12.1
|
||||||
django-shortcuts==1.6
|
django-shortcuts==1.6
|
||||||
djangorestframework==3.14.0
|
djangorestframework==3.14.0
|
||||||
|
fontawesomefree==6.5.1
|
||||||
include==0.2.2
|
include==0.2.2
|
||||||
mysqlclient==2.2.0
|
mysqlclient==2.2.0
|
||||||
pytz==2023.3.post1
|
pytz==2023.3.post1
|
||||||
|
|||||||
@ -1,11 +1,15 @@
|
|||||||
{% load bootstrap5 %}
|
{% load bootstrap5 %}
|
||||||
{% bootstrap_css %}
|
{% bootstrap_css %}
|
||||||
{% bootstrap_javascript %}
|
{% bootstrap_javascript %}
|
||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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>
|
<title>{% block title %} Quote Me {% endblock %}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -24,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>
|
||||||
|
|||||||
@ -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>{{ 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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user