#9 og #10 løst. Alt ser ut til å fungere. Mer funksjonalitet kan legges til, men generelt ser ting greit ut.

This commit is contained in:
2011-03-06 17:14:25 +00:00
parent 56dd7b67c8
commit 136d1dd7c3
5 changed files with 102 additions and 13 deletions

View File

@@ -1,12 +1,22 @@
{% extends "base/main.html" %}
{% block title%}
Worblehat 0.1: {{ person.first_name }} {{ person.last_name }}
Worblehat: {{ person.first_name }} {{ person.last_name }}
{% endblock %}
{% block content %}
<span class="key">Name:</span> {{person.first_name}} {{person.last_name}}<br>
<h2>{{ person.first_name }} {{ person.last_name }}</h2>
{% for relation, books in contributed.iteritems %}
<span class="key">{{ relation }}:</span><br/>
<ul>
{% for book in books.1 %}
<li> <a href=/bok/{{book.book.isbn}}>{{ book.book.title }}</a>
<!--- <span class="key">Name:</span> {{person.first_name}} {{person.last_name}}<br>
{% for book in books %}
<span class="key">{{ book.relation.name }} of:</span> <a href=/bok/{{ book.book.isbn }}>{{ book.book.title }}</a> <br>
---!>
{% endfor %}
<br/>
</ul>
{% endfor %}
{% endblock %}