This commit is contained in:
2018-11-19 17:14:34 +01:00
parent 95498d98ef
commit 897e9e776c
6 changed files with 51 additions and 4 deletions
+20
View File
@@ -0,0 +1,20 @@
{% extends 'base.html' %}
{% block title %}
edit
{% endblock %}
{% 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 %}
+8 -2
View File
@@ -4,15 +4,21 @@
Index
{% endblock %}
{% block content %}
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>Index der Polls-Applikation</h1>
{% for post in posts %}
<p>{{ post.notice_title }}</p>
<p>{{ post.notice_text }}</p>
<p>{{ post.notice_title }} {{ post.notice_text }}
<a class="btn btn-info" role="button">delete message</a></p>
{% endfor %}
</div>
</div>
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% endblock %}