Praktikum8

This commit is contained in:
2019-12-03 16:29:45 +01:00
parent 10d2dabced
commit d3fc3d5e39
7 changed files with 74 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
{% extends 'base.html'%}
{% block content %}
<h1>Neue Nachricht</h1>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Speichern</button>
</form>
{% endblock %}
+16
View File
@@ -0,0 +1,16 @@
{% extends 'base.html'%}
{% block content %}
<div class="container">
{% for notice in notices %}
<h3> {{ notice.notice_title }}</h3>
<p> {{ notice.notice_text }}</p>
<p><a href="{% url 'delete' deleteId=notice.id%}" class="btn btn-danger">Meldung löschen</a></p>
<hr>
{% endfor %}
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
<p><a href="{% url 'logout' %}" class="btn btn-warning">Abmelden</a></p>
{% endblock %}