MEIM/djp/templates/polls/index.html

29 lines
753 B
HTML
Raw Permalink Normal View History

2018-11-05 17:03:33 +01:00
{% extends 'base.html' %}
{% block title %}
Index
{% endblock %}
2018-11-19 17:14:34 +01:00
2018-11-05 17:03:33 +01:00
{% block content %}
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>Index der Polls-Applikation</h1>
2018-11-12 17:13:49 +01:00
{% for post in posts %}
2018-12-10 17:12:26 +01:00
<p>{{ post.notice_title }} {{ post.notice_text }}</p>
<p><a href="{% url 'delete' deleteId=post.id %}" class="btn btn-info">delete message </a></p>
2018-11-12 17:13:49 +01:00
{% endfor %}
2018-11-05 17:03:33 +01:00
</div>
</div>
2018-11-19 17:14:34 +01:00
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
2018-12-10 17:12:26 +01:00
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}?next=/polls"
class="btn btn-warning">Abmelden</a></p>
{% endif %}
2018-11-05 17:03:33 +01:00
{% endblock %}
2018-11-19 17:14:34 +01:00