2018-12-17 16:37:03 +01:00
|
|
|
|
|
|
|
{% 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 %}
|