Compare commits

..

No commits in common. "dev" and "main" have entirely different histories.
dev ... main

4 changed files with 6 additions and 14 deletions

View File

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

View File

@ -5,7 +5,6 @@ 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,15 +1,11 @@
{% 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>
@ -28,7 +24,7 @@
</ul>
</div>
</nav>
<main class="container pt-5">
<main class="container">
{% block content %}{% endblock %}
</main>
</body>

View File

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