03.12
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user