Draft notes template
svn: r13571
This commit is contained in:
parent
0f59d46f09
commit
dd71f833fe
35
src/data/templates/view_notes.html
Normal file
35
src/data/templates/view_notes.html
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{% extends "view_page.html" %}
|
||||||
|
{% load my_tags %}
|
||||||
|
|
||||||
|
{% block table_data %}
|
||||||
|
|
||||||
|
<table cellspacing="0" class="infolist surname">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Note #</th>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>Note Type</th>
|
||||||
|
<th>Text</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for note in page.object_list %}
|
||||||
|
<tr class="{% cycle odd,even %}">
|
||||||
|
<td>{{ forloop.counter|row_count:page }}</td>
|
||||||
|
<td><a href="/{{view}}/{{note.handle|escape}}" class="noThumb">
|
||||||
|
<span class="grampsid">[{{note.gramps_id}}]</span></a>
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
<td><a href="/{{view}}/{{note.handle|escape}}">{{note.note_type|escape}}</a>
|
||||||
|
<td><a href="/{{view}}/{{note.handle|escape}}">{{note.text|preview:40}}</a>
|
||||||
|
{% else %}
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
{% endif %}
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user