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

todo anzeigen und Archiv hinzugefügt

parent c3d0faaf
......@@ -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, get_impressum, get_show_todo
from todo.views import get_landing_page, get_selection_page, add_todo, get_impressum, get_show_todo, get_archiv
urlpatterns = [
path('admin/', admin.site.urls),
......@@ -27,7 +27,8 @@ urlpatterns = [
path('selection/', get_selection_page, name='selection_page'),
path('todo/add/', add_todo, name='add_todo'),
path('impressum/', get_impressum, name='impressum'),
path('show_todo/', get_show_todo, name='show_todo'),
path('todo/show/', get_show_todo, name='show_todo'),
path('todo/archiv', get_archiv, name='archv'),
]
# according to https://django-recurrence.readthedocs.io/en/latest/installation.html
......
{% extends 'todo/base.html' %}
{% load bootstrap4 %}
{% block content %}
{% endblock %}
\ No newline at end of file
......@@ -8,9 +8,9 @@
<a class="btn btn-primary btn-lg" href="/todo/add/">TO DO ANLEGEN</a>
</div>
<div class="row justify-content-center m-2">
<a class="btn btn-primary btn-lg" href="#">TO DOS ANZEIGEN</a>
<a class="btn btn-primary btn-lg" href="/todo/show">TO DO´S ANZEIGEN</a>
</div>
<div class="row justify-content-center m-2">
<a class="btn btn-primary btn-lg" href="#">ARCHIV</a>
<a class="btn btn-primary btn-lg" href="/todo/archiv">ARCHIV</a>
</div>
{% endblock %}
......@@ -93,5 +93,9 @@ def get_impressum(request):
return render(request, 'todo/impressum.html', content)
def get_show_todo(request):
content = {'page_title': 'show_todo'}
return render(request, 'todo/show_todo.html', content)
\ No newline at end of file
content = {'page_title': 'to Dos anzeigen'}
return render(request, 'todo/show_todo.html', content)
def get_archiv(request):
content = {'page_title': 'Archiv'}
return render(request, 'todo/archiv.html', content)
\ No newline at end of file
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