This commit is contained in:
2019-11-27 10:42:24 +01:00
parent 04beb1c854
commit a17626b3db
8 changed files with 71 additions and 7 deletions
+8 -2
View File
@@ -9,9 +9,15 @@
<div class="container">
{% for notice in notices %}
<h3>{{ notice.notice_title }}</h3>}}
<h3>{{ notice.notice_title }}</h3>
<P> {{ notice.notice_text }}<p>
{% endfor %}
<P><a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger">
Meldung löschen</a></P>
{% endfor %}
<p><a href="{% url 'new' %} "class="btn btn-info" role="button">Neue Nachricht</a></p>
</div>}
+18
View File
@@ -0,0 +1,18 @@
{% extends 'posts/base.html'%}
{% block title %}
News
{% endblock %}
{% block content %}
<div class="container">
<h1>Neue Nachricht</h1>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Speichern</button>
</form>
}
</div>
{% endblock %}