2009-11-13 11:02:33 +05:30
|
|
|
{% extends "view_page_detail.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
$('#tabs').tabs();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2009-11-15 04:18:30 +05:30
|
|
|
<div class="content" id="IndividualDetail">
|
2011-10-16 22:30:32 +05:30
|
|
|
|
|
|
|
{{ "/browse|Browse,/person|People"|breadcrumb}}
|
|
|
|
|
2009-11-15 04:18:30 +05:30
|
|
|
<div id="summaryarea">
|
2009-11-16 04:17:43 +05:30
|
|
|
<table class="infolist"> {% comment %} 5 cols {% endcomment %}
|
2009-11-15 04:18:30 +05:30
|
|
|
<tbody>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% if user.is_authenticated %}
|
|
|
|
{% ifequal action "edit" %}
|
|
|
|
{% for error in personform.errors %}
|
2010-01-01 20:46:20 +05:30
|
|
|
Error in person: {{error}}<br>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% endfor %}
|
|
|
|
{% for error in nameform.errors %}
|
2010-01-01 20:46:20 +05:30
|
|
|
Error in name: {{error}}<br>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% endfor %}
|
2010-08-18 08:06:26 +05:30
|
|
|
<form method="post">{% csrf_token %}
|
2009-12-27 23:53:59 +05:30
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
|
|
|
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td colspan="4">{{nameform|render_name:user}} [{{person.gramps_id}}]</td>
|
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.name_type.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.name_type user action %}</td>
|
2009-12-20 07:27:17 +05:30
|
|
|
</tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.title.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.title user action %}</td>
|
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.nick.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.nick user action %}</td>
|
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.call.label}}:</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.call user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.first_name.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="4">{% render nameform.first_name user action %}</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.suffix user action %}</td>
|
2009-11-19 08:11:37 +05:30
|
|
|
</tr>
|
2009-12-20 07:27:17 +05:30
|
|
|
<tr>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.surname.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.prefix user action %}</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="2">{% render nameform.surname user action %}</td>
|
|
|
|
<td class="ColumnAttribute" align="right">{{nameform.origin.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="2">{% render nameform.origin user action %}</td>
|
2009-12-20 07:27:17 +05:30
|
|
|
</tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{personform.gender_type.label}}:</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render personform.gender_type user action %}</td>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{personform.gramps_id.label}}:</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render personform.gramps_id user action %}</td>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{personform.tags.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" rowspan="2">{% render personform.tags user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
<tr>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnAttribute" align="right">{{personform.private.label}}:</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render personform.private user action %}</td>
|
2009-11-19 08:11:37 +05:30
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2009-11-15 04:18:30 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2009-11-13 11:02:33 +05:30
|
|
|
<!-- 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">
|
2009-11-16 04:17:43 +05:30
|
|
|
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tab-events">Events</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-names">Names</a></li>
|
2011-12-12 18:39:44 +05:30
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-citations">Citations</a></li>
|
2009-11-16 04:17:43 +05:30
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-attributes">Attributes</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-addresses">Addresses</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-notes">Notes</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-gallery">Gallery</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-internet">Internet</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-association">Associations</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-lds">LDS</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-references">References</a></li>
|
2009-11-13 11:02:33 +05:30
|
|
|
</ul>
|
2009-11-16 04:17:43 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-events">
|
2009-11-15 04:18:30 +05:30
|
|
|
<!-- Events -->
|
2009-12-27 23:53:59 +05:30
|
|
|
{% event_table person user action "/person/%s/event" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-names">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% name_table person user action "/person/%s/name" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
2011-12-12 18:39:44 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-citations">
|
|
|
|
{% citation_table person user action "/person/%s/citation" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-attributes">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% attribute_table person user action "/person/%s/attribute" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-addresses">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% address_table person user action "/person/%s/address" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
2009-12-27 23:53:59 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom
|
|
|
|
ui-tabs-hide" id="tab-notes">
|
|
|
|
{% note_table person user action "/person/%s/note" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-gallery">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% gallery_table person user action "/person/%s/gallery" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-internet">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% internet_table person user action "/person/%s/internet" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-association">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% association_table person user action "/person/%s/association" person.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-lds">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% lds_table person user action "/person/%s/lds" person.handle %}
|
2009-11-15 04:18:30 +05:30
|
|
|
</div>
|
2009-11-16 04:17:43 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-references">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% reference_table person user action "/person/%s/reference" person.handle %}
|
2009-11-15 04:18:30 +05:30
|
|
|
</div>
|
2009-11-13 11:02:33 +05:30
|
|
|
</div>
|
|
|
|
|
2009-12-27 23:53:59 +05:30
|
|
|
{% if user.is_authenticated %}
|
|
|
|
{% ifequal action "edit" %}
|
|
|
|
{% make_button "Back to Person" "/person/%s" person.handle %}
|
|
|
|
<input type="hidden" name="action" value="save"/>
|
|
|
|
<input type="submit" value="Submit"/>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
{% make_button "Back to People" "/person/" %}
|
2010-01-01 20:46:20 +05:30
|
|
|
{% make_button "Add Person" "/person/add" %}
|
2009-12-27 23:53:59 +05:30
|
|
|
{% make_button "Edit Person" "/person/%s/edit" person.handle %}
|
|
|
|
{% make_button "Delete Person" "/person/%s/delete" person.handle %}
|
|
|
|
{% endifequal %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
2009-11-13 11:02:33 +05:30
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|