lagt til litt templates
This commit is contained in:
parent
fdb67788c6
commit
d79e5299af
|
@ -0,0 +1,5 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>{% block title %}{% endblock %}</title>
|
||||||
|
|
||||||
|
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}styles/bilbo_green.css"
|
|
@ -0,0 +1,8 @@
|
||||||
|
Title: {{ book.title }} <br>
|
||||||
|
{% if book.subtitle %}
|
||||||
|
Subtitle: {{ book.subtitle }} <br>
|
||||||
|
{% endif %}
|
||||||
|
ISBN: {{ book.isbn }} <br>
|
||||||
|
{% for person in people %}
|
||||||
|
{{ person.relation }} : <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
|
||||||
|
{% endfor %}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<head>
|
||||||
|
<title> {{ title }} </title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
Name: {{person.first_name}} {{person.last_name}}<br>
|
||||||
|
{% for book in books %}
|
||||||
|
{{ book.relation.name }} of: <a href=/book/{{ book.book.isbn }}>{{ book.book.title }}</a> <br>
|
||||||
|
{% endfor %}
|
Reference in New Issue