Not Working condition
This commit is contained in:
+1
-5
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user