Pimpa opp hyllene litt, i henhold til #12.
This commit is contained in:
14
python/web/templates/book/index.html
Normal file
14
python/web/templates/book/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base/main.html" %}
|
||||
|
||||
{%block title%}
|
||||
Bøker
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Bøker:</h2>
|
||||
<ul>
|
||||
{% for book in books %}
|
||||
<li><a href="/bok/{{ book.isbn }}">{{ book.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
14
python/web/templates/person/index.html
Normal file
14
python/web/templates/person/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base/main.html" %}
|
||||
|
||||
{%block title%}
|
||||
Personer
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Personer:</h2>
|
||||
<ul>
|
||||
{% for person in persons %}
|
||||
<li><a href="/person/{{ person.id }}">{{ person.first_name }} {{ person.last_name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user