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>Name</th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Gender</th>
|
|
|
|
<th>Birth Date</th>
|
|
|
|
<th>Death Date</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for name in page.object_list %}
|
|
|
|
<tr class="{% cycle odd,even %}">
|
2009-12-29 08:52:03 +05:30
|
|
|
{% if name.person %}
|
2012-06-05 02:28:05 +05:30
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell">{{ forloop.counter|row_count:page }}</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
</td>
|
2012-06-05 02:28:05 +05:30
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell">{{name|make_name:user}} </a>
|
2009-11-19 08:11:37 +05:30
|
|
|
</td>
|
2012-06-05 02:28:05 +05:30
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="grampsid browsecell">[{{name.person.gramps_id}}]</a></td>
|
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell">{{name.person.gender_type}} </a></td>
|
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell">{{name.person.birth|date_as_text:user}} </a></td>
|
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell">{{name.person.death|date_as_text:user}} </a></td>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2012-05-19 17:54:40 +05:30
|
|
|
{% if user.is_superuser %}
|
2012-06-05 02:28:05 +05:30
|
|
|
{% make_button "Add Person" "/person/add" args %}
|
2010-01-01 20:46:20 +05:30
|
|
|
{% endif %}
|
|
|
|
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endblock %}
|
|
|
|
|