forked from expo/troggle
[svn] add personindex templates
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8038 by julian @ 10/27/2008 12:36 AM
This commit is contained in:
24
templates/person.html
Normal file
24
templates/person.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
{% load wiki_markup %}
|
||||
|
||||
{% block title %}Person {{person.id}}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="personblock"><a href="/person/{{person.id}}">{{person}}</a>
|
||||
<ul>
|
||||
{% for personexpedition in person.personexpedition_set.all %}
|
||||
<li>
|
||||
<table><tr><td>
|
||||
{{personexpedition.expedition}}
|
||||
</td><td>
|
||||
<div>
|
||||
{% for persontrip in personexpedition.persontrip_set.all %}
|
||||
<a href="/logbook/{{persontrip.logbookentry.id}}">{{persontrip.date}}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
||||
26
templates/personindex.html
Normal file
26
templates/personindex.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
{% load wiki_markup %}
|
||||
|
||||
{% block title %}Person Index{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% for person in persons %}
|
||||
<div class="personblock"><a href="/person/{{person.id}}">{{person}}</a>
|
||||
<ul>
|
||||
{% for personexpedition in person.personexpedition_set.all %}
|
||||
<li>
|
||||
<table><tr><td>
|
||||
{{personexpedition.expedition}}
|
||||
</td><td>
|
||||
<div>
|
||||
{% for persontrip in personexpedition.persontrip_set.all %}
|
||||
<a href="/logbook/{{persontrip.logbookentry.id}}">{{persontrip.date}}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user