Not Working condition

This commit is contained in:
2021-11-24 12:58:02 +01:00
parent f96ca949f0
commit 72c6a3762d
8 changed files with 80 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block body %}
<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 -1
View File
@@ -1,2 +1,17 @@
{% extends "base.html" %}
{% block body %} <h1> sytle="text-align:center" {{ name }} </h1> {% endblock body %}
{% block title %}
News
{% endblock %}
{% block body %}
<div>
{% for notice in notices %}
<h3> {{ notice.notice_title }}</h3>
<p> {{ notice.notice_text }}</p>
<p><a class="btn btn-info" role="button"> href={% url 'delete' id=n %} Löschen </a></p>
{% endfor %}
</div>
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% endblock %}