Zwischenstand des Praktikums: index-Fkt muss noch angepasst werden!
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user