This commit is contained in:
Mai Gillmann
2019-12-03 15:16:55 +01:00
commit d970005a13
10 changed files with 169 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %} {% endblock %}</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
{% block navigation %}
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="http://127.0.0.1:8000/">BlahBlahWebseite</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="https://www.th-nuernberg.de/fakultaeten/efi/">efi-Homepage</a></li>
<li><a href="https://www.google.de">Google</a></li>
<li><a href="https://getbootstrap.com/docs/3.4/getting-started/">Bootstrap</a></li>
<li><a href="#">Weiß nicht</a></li>
</ul>
</div>
</nav>
{% endblock %}
<div class="container">
<div class="jumbotron">
<h1>Probieren</h1>
<p>Hier ist etwas blahblah.</p>
</div>
</div>
{% block content %}
<div>
<p>Hier ist etwas.</p>
<p>Da ist noch etwas.</p>
</div>
{% endblock %}
</body>
</html>
+13
View File
@@ -0,0 +1,13 @@
{% extends 'base.html' %}
{% block title %}
Edit
{% endblock %}
{% 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 %}
+34
View File
@@ -0,0 +1,34 @@
{% extends 'base.html' %}
{% block title %}
Index
{% endblock %}
{% block content %}
<h1>Index der Applikation</h1>
<form action="/posts" method="POST">
{% for notice in notices %}
<div>
<p>published: {{ notice.pub_start }}</p>
<h2><a href="">{{ notice.notice_title }}</a></h2>
<p>{{ notice.notice_text|linebreaksbr }}</p>
<p>
<a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger">
Meldung löschen
</a>
</p>
</div>
{% endfor %}
<div>
<p>
<a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a>
</p>
</div>
</form>
{% endblock %}