gramps/src/data/templates/view_person_detail.html

97 lines
3.7 KiB
HTML
Raw Normal View History

{% extends "view_page_detail.html" %}
{% load my_tags %}
{% block content %}
<script type="text/javascript">
$(function(){
$('#tabs').tabs();
});
</script>
<div class="content" id="IndividualDetail">
<h3>{{person.name_set|make_name:user}}</h3>
<div id="summaryarea">
<table class="infolist">
<tbody>
<tr>
<td class="ColumnAttribute">Family</td>
<td class="ColumnValue">{{person.name_set|preferred:"surname"}}</td>
<td class="ColumnAttribute">Prefix</td>
<td class="ColumnValue">{{person.name_set|preferred:"prefix"}}</td>
</tr>
<tr>
<td class="ColumnAttribute">Given</td>
<td class="ColumnValue">{{person.name_set|preferred:"first_name"}}</td>
<td class="ColumnAttribute">Callname</td>
<td class="ColumnValue">{{person.name_set|preferred:"call"}}</td>
</tr>
<tr>
<td class="ColumnAttribute">Type</td>
<td class="ColumnValue">{{person.name_set|preferred:"name_type"}}</td>
<td class="ColumnAttribute">Patronymic</td>
<td class="ColumnValue">{{person.name_set|preferred:"patronymic"}}</td>
</tr>
<tr>
<td class="ColumnAttribute">Description</td>
<td class="ColumnValue" spancols="3"></td>
</tr>
<tr>
<td class="ColumnAttribute">ID</td>
<td class="ColumnValue" spancols="3">{{person.gramps_id|escape}}</td>
</tr>
<tr>
<td class="ColumnAttribute">Place</td>
<td class="ColumnValue" spancols="3"></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Tabs -->
<h2 class="demoHeaders">Tabs</h2>
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-1">Events</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-2">Names</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-3">Sources</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-4">Attributes</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-5">Notes</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-6">Gallery</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-7">Internet</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-8">Associations</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-9">LDS</a></li>
<li class="ui-corner-top ui-state-default"><a href="#tabs-10">References</a></li>
</ul>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tabs-1">
<!-- Events -->
{{ person|events_table|safe }}
</div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-2">
<!-- Names -->
<table border="1">
{% for name in person.name_set.all %}
<tr>
<td>{{forloop.counter}}</td>
<td><a href="/name/{{name.id}}">{{name|make_name:user}}</a></td>
</tr>
{% endfor %}
</table>
</div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-3"> table 3 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-4"> table 4 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-5"> table 5 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-6"> table 6 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-7"> table 7 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-8"> table 8 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-9"> table 9 </div>
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-10"> table 10 </div>
</div>
{% endblock %}