mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2026-02-21 19:55:18 +00:00
[svn r8038] add personindex templates
This commit is contained in:
24
troggle/templates/person.html
Normal file
24
troggle/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
troggle/templates/personindex.html
Normal file
26
troggle/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