Solution of 06
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %} {{ title }} {% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Neue Nachricht</h1>
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="save btn btn-default">Speichern</button>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
@@ -7,6 +7,8 @@
|
||||
<div class="jumbotron">
|
||||
<h1 class="display-6">{{ notice.notice_title }}</h1>
|
||||
<p class="lead">{{notice.notice_text}}</p>
|
||||
<p><a href="{% url 'delete' notice.id %}" class="btn btn-info" role="button">Nachricht löschen</a></p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<p><a href="{% url 'new' %}" class="btn btn-info" role="button">Neue Nachricht</a></p>
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user