Not Working condition

This commit is contained in:
2021-11-24 12:58:02 +01:00
parent f96ca949f0
commit 72c6a3762d
8 changed files with 80 additions and 11 deletions
+1 -5
View File
@@ -3,13 +3,9 @@
<head>
<title>My first page</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="jumbotron">
<div>
{% block body %} Platzhalter {% endblock body %}
</div>
</body>
+10
View File
@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block body %}
<h1>Neue Nachricht </h1>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Speichern</button>
</form>
{% endblock %}
+16 -1
View File
@@ -1,2 +1,17 @@
{% extends "base.html" %}
{% block body %} <h1> sytle="text-align:center" {{ name }} </h1> {% endblock body %}
{% block title %}
News
{% endblock %}
{% block body %}
<div>
{% for notice in notices %}
<h3> {{ notice.notice_title }}</h3>
<p> {{ notice.notice_text }}</p>
<p><a class="btn btn-info" role="button"> href={% url 'delete' id=n %} Löschen </a></p>
{% endfor %}
</div>
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
{% endblock %}