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