praktikum Aufgabe7
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 %}
|
||||
@@ -3,14 +3,18 @@
|
||||
|
||||
<h2>Seite Infos</h2>
|
||||
|
||||
{% for notice in allnotice %}
|
||||
|
||||
<div class="notice">
|
||||
<h3>{{ notice.notice_title }}</h3>
|
||||
<h3>{{ notice.notice_text |linebreaks }}</h3>
|
||||
</div>
|
||||
{% empty %}
|
||||
|
||||
<div class="card w-100">
|
||||
<div class="card-body">
|
||||
{% for notice in allnotice %}
|
||||
<h5 class="card-title">{{ notice.notice_title }}</h5>
|
||||
<p class="card-text">{{ notice.notice_text |linebreaks }}</p>
|
||||
<p><a href="{% url 'delete' deleteId=notice.id%}" class="btn btn-danger">Nachricht Löschen</a></p>
|
||||
{% endfor %}
|
||||
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user