2009-11-10 10:58:35 +05:30
|
|
|
{% extends "view_page.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block table_data %}
|
|
|
|
|
|
|
|
<table cellspacing="0" class="infolist surname">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
<th>#</th>
|
2009-11-10 10:58:35 +05:30
|
|
|
<th>ID</th>
|
|
|
|
<th>Father</th>
|
|
|
|
<th>Mother</th>
|
|
|
|
<th>Relationship</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for family in page.object_list %}
|
|
|
|
<tr class="{% cycle odd,even %}">
|
2009-11-19 08:11:37 +05:30
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="noThumb">{{ forloop.counter|row_count:page }}</a></td>
|
2009-11-11 04:12:27 +05:30
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="noThumb"><span class="grampsid">[{{family.gramps_id}}]</span></a>
|
2009-11-19 08:11:37 +05:30
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}">{{family.father.name_set|make_name:user}}</a>
|
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}">{{family.mother.name_set|make_name:user}}</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}">{{family.family_rel_type|escape}}</a>
|
|
|
|
{% else %}
|
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}">[Private]</a>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|