2019-11-05 12:56:51 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Index
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2019-11-26 14:46:59 +01:00
|
|
|
<div class=container>
|
|
|
|
<h1 class="display-4">Your Posts</h1>
|
2019-11-19 12:48:20 +01:00
|
|
|
|
|
|
|
<div class=container>
|
|
|
|
{% for notice in notices %}
|
2019-11-26 14:46:59 +01:00
|
|
|
<div class="jumbotron">
|
|
|
|
<h3>{{ notice.notice_title }}</h3>
|
|
|
|
<p>{{ notice.notice_text }}</p>
|
|
|
|
<p><a href="{% url 'delete' deleteId=notice.id %}" class="btn btn-danger" role="button">Delete</a></p>
|
|
|
|
{% if message %}
|
|
|
|
<script>
|
|
|
|
alert('{{ message }}');
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2019-11-19 12:48:20 +01:00
|
|
|
{% endfor %}
|
2019-11-26 14:46:59 +01:00
|
|
|
|
|
|
|
<div class=container>
|
|
|
|
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
|
|
|
</div>
|
2019-11-19 12:48:20 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--p class="lead">Some placeholder Text</p-->
|
2019-11-05 12:56:51 +01:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|