Django/templates/posts/index.html
khaloufam70043 55c9032946 praktikum 7
2019-11-26 15:32:42 +01:00

27 lines
519 B
HTML
Executable File

{% extends 'base.html' %}
{% block title %}
News
{% endblock %}
{% block content %}
<div class="container">
{% for notice in notices %}
<h3>{{ notice.notice_title }}</h3>
<p>{{ notice.notice_text }}</p>
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
<p><a href= "{% url 'delete' deleteId=notice.id %}" class="btn btn-danger">
Meldung loeschen</a></p>
{% endfor %}
</div>
{% endblock %}