From d79e5299af4531c2aabb4a31f3c55f933c65ff65 Mon Sep 17 00:00:00 2001 From: almelid Date: Sat, 5 Mar 2011 20:30:03 +0000 Subject: [PATCH] lagt til litt templates --- python/web/templates/base/main.html | 5 +++++ python/web/templates/book/view.html | 8 ++++++++ python/web/templates/person/view.html | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 python/web/templates/base/main.html create mode 100644 python/web/templates/book/view.html create mode 100644 python/web/templates/person/view.html diff --git a/python/web/templates/base/main.html b/python/web/templates/base/main.html new file mode 100644 index 0000000..47ad4e4 --- /dev/null +++ b/python/web/templates/base/main.html @@ -0,0 +1,5 @@ + + +{% block title %}{% endblock %} + + +{% if book.subtitle %} + Subtitle: {{ book.subtitle }}
+{% endif %} +ISBN: {{ book.isbn }}
+{% for person in people %} + {{ person.relation }} : {{ person.person.first_name }} {{ person.person.last_name }}
+{% endfor %} diff --git a/python/web/templates/person/view.html b/python/web/templates/person/view.html new file mode 100644 index 0000000..2095d70 --- /dev/null +++ b/python/web/templates/person/view.html @@ -0,0 +1,9 @@ + + {{ title }} + + + +Name: {{person.first_name}} {{person.last_name}}
+{% for book in books %} +{{ book.relation.name }} of: {{ book.book.title }}
+{% endfor %}