From e2a834a56c2dd7fcec08dc71b17f57e754728807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 28 Jun 2019 07:33:08 +0200 Subject: [PATCH] Add and improve routes --- bookmarks/templates/bookmarks/detail.html | 1 - bookmarks/templates/bookmarks/edit.html | 5 +++++ bookmarks/templates/bookmarks/index.html | 7 +++++-- bookmarks/templates/bookmarks/new.html | 5 +++++ bookmarks/urls.py | 13 ++++++++++--- bookmarks/views.py | 11 +++++++---- siteroot/urls.py | 2 +- 7 files changed, 33 insertions(+), 11 deletions(-) delete mode 100644 bookmarks/templates/bookmarks/detail.html create mode 100644 bookmarks/templates/bookmarks/edit.html create mode 100644 bookmarks/templates/bookmarks/new.html diff --git a/bookmarks/templates/bookmarks/detail.html b/bookmarks/templates/bookmarks/detail.html deleted file mode 100644 index fc9203e..0000000 --- a/bookmarks/templates/bookmarks/detail.html +++ /dev/null @@ -1 +0,0 @@ -

Edit bookmark {{ bookmark.id }}

diff --git a/bookmarks/templates/bookmarks/edit.html b/bookmarks/templates/bookmarks/edit.html new file mode 100644 index 0000000..7de25ad --- /dev/null +++ b/bookmarks/templates/bookmarks/edit.html @@ -0,0 +1,5 @@ +{% extends "bookmarks/layout.html" %} + +{% block content %} +

Edit bookmark

+{% endblock %} diff --git a/bookmarks/templates/bookmarks/index.html b/bookmarks/templates/bookmarks/index.html index 5018909..4774953 100644 --- a/bookmarks/templates/bookmarks/index.html +++ b/bookmarks/templates/bookmarks/index.html @@ -1,7 +1,10 @@ {% extends "bookmarks/layout.html" %} {% block content %} -

Bookmarks

+
+

Bookmarks

+ Add +