This commit is contained in:
2018-12-10 17:12:26 +01:00
parent 5e5e30306c
commit c30d6213bc
5 changed files with 76 additions and 7 deletions
+7 -4
View File
@@ -10,16 +10,19 @@ Index
<div class="container">
<h1>Index der Polls-Applikation</h1>
{% for post in posts %}
<p>{{ post.notice_title }} {{ post.notice_text }}
<a class="btn btn-info" role="button">delete message</a></p>
<p>{{ post.notice_title }} {{ post.notice_text }}</p>
<p><a href="{% url 'delete' deleteId=post.id %}" class="btn btn-info">delete message </a></p>
{% endfor %}
</div>
</div>
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
<p><a href="{% url 'logout' %}" class="btn btn-warning">Abmelden</a></p>
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}?next=/polls"
class="btn btn-warning">Abmelden</a></p>
{% endif %}
{% endblock %}