Commit c57edcd7 authored by Hänzelmann, Antje's avatar Hänzelmann, Antje
Browse files

impressum

parent 09d9c19b
No preview for this file type
......@@ -18,7 +18,7 @@ from django.contrib import admin
from django.urls import path
from django.views.i18n import JavaScriptCatalog
from todo.views import get_landing_page, get_selection_page, add_todo
from todo.views import get_landing_page, get_selection_page, add_todo, get_impressum
urlpatterns = [
path('admin/', admin.site.urls),
......@@ -26,6 +26,7 @@ urlpatterns = [
path('', get_landing_page, name='landing_page'),
path('selection/', get_selection_page, name='selection_page'),
path('todo/add/', add_todo, name='add_todo'),
path('impressum/', get_impressum, name='impressum'),
]
# according to https://django-recurrence.readthedocs.io/en/latest/installation.html
......
......@@ -66,7 +66,7 @@
</div>
{% block footer %}
<nav class="navbar fixed-bottom navbar-light bg-light">
<a class="navbar-brand" href="#">Impressum</a>
<a class="navbar-brand" href="/impressum">Impressum</a>
</nav>
{% endblock %}
</body>
......
{% extends 'todo/base.html' %}
{% load bootstrap4 %}
{% block content %}
<p>
</p>
{% endblock %}
\ No newline at end of file
......@@ -15,7 +15,6 @@ class Todo(models.Model):
def __str__(self):
return self.text
class Selection(models.Model):
name = models.CharField(max_length=30, default="name")
items = models.ManyToManyField(Todo)
......
......@@ -14,7 +14,6 @@ def get_landing_page(request):
context = {'todo_list': todo_list}
return render(request, 'todo/landing_page.html', {'page_title': 'Feierabend!'})
def add_todo(request):
todo = Todo()
......@@ -88,3 +87,9 @@ def get_selection_page(request):
'todos_selection': [],
}
return render(request, 'todo/selection_page.html', content)
def get_impressum(request):
content = {'page_title': 'Impressum'}
return render(request, 'todo/impressum.html', content)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment