This commit is contained in:
Mai Gillmann
2019-12-03 15:16:55 +01:00
commit d970005a13
10 changed files with 169 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
{% extends 'base.html' %}
{% block title %}
Index
{% endblock %}
{% block content %}
<h1>Index der Applikation</h1>
<form action="/posts" method="POST">
{% for notice in notices %}
<div>
<p>published: {{ notice.pub_start }}</p>
<h2><a href="">{{ notice.notice_title }}</a></h2>
<p>{{ notice.notice_text|linebreaksbr }}</p>
<p>
<a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger">
Meldung löschen
</a>
</p>
</div>
{% endfor %}
<div>
<p>
<a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a>
</p>
</div>
</form>
{% endblock %}