MEIM/djp/templates/polls/index.html
2018-12-10 17:12:26 +01:00

29 lines
753 B
HTML

{% extends 'base.html' %}
{% block title %}
Index
{% endblock %}
{% block content %}
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>Index der Polls-Applikation</h1>
{% for post in posts %}
<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>
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}?next=/polls"
class="btn btn-warning">Abmelden</a></p>
{% endif %}
{% endblock %}