Solution of 06

This commit is contained in:
2018-12-12 20:14:16 +01:00
parent fccc0f39d6
commit b4ac907a6a
7 changed files with 54 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block title %} {{ title }} {% endblock title %}
{% 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 content %}
+2
View File
@@ -7,6 +7,8 @@
<div class="jumbotron">
<h1 class="display-6">{{ notice.notice_title }}</h1>
<p class="lead">{{notice.notice_text}}</p>
<p><a href="{% url 'delete' notice.id %}" class="btn btn-info" role="button">Nachricht löschen</a></p>
</div>
{% endfor %}
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% endblock content %}