This commit is contained in:
Oliver
2023-12-04 13:09:31 +01:00
commit 2d7af0e65f
22 changed files with 488 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
{% extends "base.html" %}
{% block title %}News{% endblock %}
{% block content %}
<div class="jumbotron">
<h1 class="display-4">News</h1>
</div>
{% for notice in notices %}
<hr>
<h3>{{ notice.notice_title }}</h3>
<p>{{ notice.notice_text }}</p>
{% if user.is_staff %}
<p>
<a href="{% url 'delete' deleteId=notice.id %}"
class="btn btn-danger">
Meldung löschen
</a>
</p>
{% endif %}
{% endfor %}
<hr>
<p>
<a href="{% url 'new' %}"
class="btn btn-primary">
Neue Meldung erstellen
</a>
</p>
{% endblock %}