Init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Edit{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Neue Nachricht</h1>
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input class="btn btn-primary"
|
||||
type="submit"
|
||||
value="Speichern">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}News{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="jumbotron">
|
||||
<h1 class="display-4">News</h1>
|
||||
</div>
|
||||
|
||||
{% for notice in notices %}
|
||||
<hr>
|
||||
<h3>{{ notice.notice_title }}</h3>
|
||||
<p>{{ notice.notice_text }}</p>
|
||||
|
||||
{% if user.is_staff %}
|
||||
<p>
|
||||
<a href="{% url 'delete' deleteId=notice.id %}"
|
||||
class="btn btn-danger">
|
||||
Meldung löschen
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
<hr>
|
||||
|
||||
<p>
|
||||
<a href="{% url 'new' %}"
|
||||
class="btn btn-primary">
|
||||
Neue Meldung erstellen
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user