2019-12-03 14:36:59 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
2019-12-10 15:03:12 +01:00
|
|
|
<script>
|
|
|
|
var es = new ReconnectingEventSource('/events/');
|
|
|
|
es.addEventListener('message', function (e) {console.log(e.data);location.reload();}, false);
|
|
|
|
</script>
|
2019-12-03 14:36:59 +01:00
|
|
|
<h2>Seite Infos</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card w-100">
|
|
|
|
<div class="card-body">
|
|
|
|
{% for notice in notices %}
|
|
|
|
<h5 class="card-title">{{ notice.notice_title }}</h5>
|
|
|
|
<p class="card-text">{{ notice.notice_text |linebreaks }}</p>
|
|
|
|
<p><a href="{% url 'delete' deleteId=notice.id%}" class="btn btn-danger">Nachricht Löschen</a></p>
|
|
|
|
{% endfor %}
|
|
|
|
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-26 14:31:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|