Aufgabe7
This commit is contained in:
@@ -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>}
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user