Zwischenstand des Praktikums: index-Fkt muss noch angepasst werden!

This commit is contained in:
2018-12-17 16:37:03 +01:00
parent 9a720248a4
commit 2e11b651a1
9 changed files with 174 additions and 19 deletions
@@ -1,10 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Messages</title>
</head>
<body>
</body>
</html>
{% extends 'base.html' %}
{% block title %}
News
{% endblock %}
{% block content %}
<div class="container">
{% for curr_notice in notices %}
<h3>{{ curr_notice.notice_title }}</h3>
<p>{{ curr_notice.notice_text }}</p>
<p><a href ="{% url 'delete' id=curr_notice.id %}" class="btn btn-info" role="button"> Löschen </a> </p>
{% endfor %}
<!--p><a href ="#" class="btn btn-info" role="button"> Neue Nachricht </a> </p-->
<!-- alter Button -> kein Verweis auf die neue view-Funktion namens "new()" -->
<p><a href ="{% url 'new' %}" class="btn btn-info" role="button"> Neue Nachricht </a> </p
</div>
{% endblock %}