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 %}
|
2012-08-01 02:19:19 +05:30
|
|
|
<tr class="{% cycle odd,even %}" style="">
|
2009-12-29 08:52:03 +05:30
|
|
|
{% if name.person %}
|
2012-08-01 02:19:19 +05:30
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell"
|
|
|
|
{% if name.person.tags.all %}
|
|
|
|
style="color: {{name.person.tags.all.0.color|format_color}};"
|
|
|
|
{% endif %}
|
|
|
|
>{{ forloop.counter|row_count:page }}</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
</td>
|
2012-08-01 02:19:19 +05:30
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell"
|
|
|
|
{% if name.person.tags.all %}
|
|
|
|
style="color: {{name.person.tags.all.0.color|format_color}};"
|
|
|
|
{% endif %}
|
|
|
|
>{{name|make_name:user}} </a>
|
2009-11-19 08:11:37 +05:30
|
|
|
</td>
|
2012-08-01 02:19:19 +05:30
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="grampsid browsecell"
|
|
|
|
{% if name.person.tags.all %}
|
|
|
|
style="color: {{name.person.tags.all.0.color|format_color}};"
|
|
|
|
{% endif %}
|
|
|
|
>[{{name.person.gramps_id}}]</a></td>
|
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell"
|
|
|
|
{% if name.person.tags.all %}
|
|
|
|
style="color: {{name.person.tags.all.0.color|format_color}};"
|
|
|
|
{% endif %}
|
|
|
|
>{{name.person.gender_type}} </a></td>
|
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell"
|
|
|
|
{% if name.person.tags.all %}
|
|
|
|
style="color: {{name.person.tags.all.0.color|format_color}};"
|
|
|
|
{% endif %}
|
|
|
|
>{{name.person.birth|date_as_text:user}} </a></td>
|
|
|
|
<td><a href="{{name.person.handle}}/{{args}}" class="noThumb browsecell"
|
|
|
|
{% if name.person.tags.all %}
|
|
|
|
style="color: {{name.person.tags.all.0.color|format_color}};"
|
|
|
|
{% endif %}
|
|
|
|
>{{name.person.death|date_as_text:user}} </a></td>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2012-12-02 03:43:30 +05:30
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block admin_functions %}
|
2012-05-19 17:54:40 +05:30
|
|
|
{% if user.is_superuser %}
|
2012-12-02 03:43:30 +05:30
|
|
|
<div style="background-color: lightgray; padding: 2px 0px 0px 2px">
|
|
|
|
{% make_button "+Add Person" "/person/add" args %}
|
|
|
|
</div>
|
2010-01-01 20:46:20 +05:30
|
|
|
{% endif %}
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endblock %}
|
|
|
|
|