PyWebVL/templates/polls/index.html
2023-12-07 15:17:12 +01:00

43 lines
814 B
HTML

{% 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 or notice.user_id == user.id %}
<p>
<a href="{% url 'delete' deleteId=notice.id %}"
class="btn btn-danger">
Meldung löschen
</a>
</p>
{% endif %}
{% endfor %}
<hr>
{% if user.is_authenticated %}
<p>
<a href="{% url 'new' %}"
class="btn btn-primary">
Neue Meldung erstellen
</a>
</p>
{% endif %}
{% endblock %}