2009-11-10 10:58:35 +05:30
|
|
|
{% extends "view_page.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block table_data %}
|
|
|
|
|
2009-12-06 10:39:43 +05:30
|
|
|
<table cellspacing="0" class="infolist surname" width="95%">
|
2009-11-10 10:58:35 +05:30
|
|
|
<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 %}">
|
2012-05-30 08:22:33 +05:30
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="browsecell">{{ forloop.counter|row_count:page }}</a></td>
|
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="browsecell"><span class="grampsid">[{{family.gramps_id}}]</span></a>
|
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="browsecell">{{family.father|make_name:user|nbsp}}</a>
|
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="browsecell">{{family.mother|make_name:user|nbsp}}</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% if user.is_authenticated %}
|
2012-05-30 08:22:33 +05:30
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="browsecell">{{family.family_rel_type|escape}}</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% else %}
|
2012-05-30 08:22:33 +05:30
|
|
|
<td><a href="/{{view}}/{{family.handle|escape}}" class="browsecell">[Private]</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2012-05-25 02:21:46 +05:30
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% make_button "Add Family" "/family/add" %}
|
|
|
|
{% endif %}
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endblock %}
|
|
|
|
|