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-12-06 10:39:43 +05:30
|
|
|
<th>#</th>
|
2009-11-10 10:58:35 +05:30
|
|
|
<th>ID</th>
|
2009-11-13 11:02:33 +05:30
|
|
|
<th>Event Type</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Place</th>
|
2009-11-10 10:58:35 +05:30
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2009-11-13 11:02:33 +05:30
|
|
|
{% for event in page.object_list %}
|
2009-11-10 10:58:35 +05:30
|
|
|
<tr class="{% cycle odd,even %}">
|
|
|
|
<td>{{ forloop.counter|row_count:page }}</td>
|
2012-06-05 07:18:39 +05:30
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="noThumb browsecell">
|
2009-11-13 11:02:33 +05:30
|
|
|
<span class="grampsid">[{{event.gramps_id}}]</span></a>
|
2010-01-02 07:39:09 +05:30
|
|
|
|
2012-08-01 02:19:19 +05:30
|
|
|
{% if user.is_authenticated or event.public %}
|
2012-06-05 07:18:39 +05:30
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">{{event.event_type|nbsp}}</a>
|
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">{{event.description|nbsp}}</a>
|
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">{{event|date_as_text:user}}</a>
|
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">{{event.place.title|nbsp}}</a>
|
2009-11-10 10:58:35 +05:30
|
|
|
{% else %}
|
2012-08-01 02:19:19 +05:30
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">[Private]</a>
|
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">[Private]</a>
|
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">[Private]</a>
|
|
|
|
<td><a href="/{{view}}/{{event.handle|escape}}{{args}}" class="browsecell">[Private]</a>
|
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-25 02:21:46 +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 Event" "/event/add" args %}
|
|
|
|
</div>
|
2012-05-25 02:21:46 +05:30
|
|
|
{% endif %}
|
2009-11-10 10:58:35 +05:30
|
|
|
{% endblock %}
|