2009-11-10 05:28:35 +00:00
|
|
|
{% extends "view_page.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block table_data %}
|
|
|
|
|
2009-12-06 05:09:43 +00:00
|
|
|
<table cellspacing="0" class="infolist surname" width="95%">
|
2009-11-10 05:28:35 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2009-11-19 02:41:37 +00:00
|
|
|
<th>#</th>
|
2009-11-10 05:28:35 +00:00
|
|
|
<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-07-31 20:49:19 +00:00
|
|
|
<tr class="{% cycle odd,even %}" style="">
|
2009-12-29 03:22:03 +00:00
|
|
|
{% if name.person %}
|
2012-07-31 20:49:19 +00:00
|
|
|
<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 05:28:35 +00:00
|
|
|
</td>
|
2012-07-31 20:49:19 +00:00
|
|
|
<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 02:41:37 +00:00
|
|
|
</td>
|
2012-07-31 20:49:19 +00:00
|
|
|
<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 05:28:35 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2012-12-01 22:13:30 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block admin_functions %}
|
2012-05-19 12:24:40 +00:00
|
|
|
{% if user.is_superuser %}
|
2012-12-01 22:13:30 +00:00
|
|
|
<div style="background-color: lightgray; padding: 2px 0px 0px 2px">
|
|
|
|
{% make_button "+Add Person" "/person/add" args %}
|
|
|
|
</div>
|
2010-01-01 15:16:20 +00:00
|
|
|
{% endif %}
|
2009-11-10 05:28:35 +00:00
|
|
|
{% endblock %}
|
|
|
|
|