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
|
|
|
|
2011-12-13 04:51:13 +05:30
|
|
|
{% include "detail_breadcrumb.html" %}
|
2011-10-16 22:30:32 +05:30
|
|
|
|
2009-11-15 04:18:30 +05:30
|
|
|
<div id="summaryarea">
|
2012-05-17 17:26:59 +05:30
|
|
|
<table class="infolist" style="width:90%;"> {% comment %} 5 cols {% endcomment %}
|
2009-11-15 04:18:30 +05:30
|
|
|
<tbody>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% for error in personform.errors %}
|
2012-05-21 00:52:30 +05:30
|
|
|
<p id="error">Error in person: {{error}}</p>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% endfor %}
|
|
|
|
{% for error in nameform.errors %}
|
2012-05-21 00:52:30 +05:30
|
|
|
<p id="error">Error in name: {{error}}</p>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% endfor %}
|
2012-05-17 03:20:00 +05:30
|
|
|
{% for error in surnameform.errors %}
|
2012-05-21 00:52:30 +05:30
|
|
|
<p id="error">Error in surname: {{error}}</p>
|
2012-05-17 03:20:00 +05:30
|
|
|
{% endfor %}
|
2012-05-15 20:15:47 +05:30
|
|
|
<form method="post">{% csrf_token %}
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td colspan="4" id="subtitle">{{nameform|render_name:user}}</td>
|
|
|
|
<td class="ColumnAttribute">{{nameform.name_type.label}}:</td>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.name_type user action %}</td>
|
2009-12-20 07:27:17 +05:30
|
|
|
</tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<tr><td id="rowspace"></td></tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.title.label}}:</td>
|
2012-05-16 01:55:50 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.title user action False "" "get_focus" %}</td>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.nick.label}}:</td>
|
2011-10-18 07:26:14 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.nick user action %}</td>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{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>
|
2012-05-17 22:06:21 +05:30
|
|
|
<tr><td id="rowspace"></td></tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.first_name.label}}:</td>
|
2011-10-18 07:26:14 +05:30
|
|
|
<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>
|
2012-05-17 22:06:21 +05:30
|
|
|
<tr><td id="rowspace"></td></tr>
|
2009-12-20 07:27:17 +05:30
|
|
|
<tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.surname.label}}:</td>
|
2012-05-17 03:20:00 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.prefix user action %}</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="2">{% render surnameform.surname user action %}</td>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.name_origin_type.label}}:</td>
|
2012-05-17 03:20:00 +05:30
|
|
|
<td class="ColumnValue" id="data" colspan="2">{% render surnameform.name_origin_type user action %}</td>
|
2009-12-20 07:27:17 +05:30
|
|
|
</tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<tr><td id="rowspace"></td></tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{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>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{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>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{personform.tags.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" rowspan="3">{% render personform.tags user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<tr><td id="rowspace"></td></tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
<tr>
|
2012-05-17 22:06:21 +05:30
|
|
|
<td class="ColumnAttribute">{{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 -->
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2012-05-19 17:54:40 +05:30
|
|
|
{% if user.is_superuser %}
|
2012-05-21 00:52:30 +05:30
|
|
|
{% if action == "edit" %}
|
2009-12-27 23:53:59 +05:30
|
|
|
{% make_button "Back to Person" "/person/%s" person.handle %}
|
|
|
|
<input type="hidden" name="action" value="save"/>
|
2012-05-15 20:15:47 +05:30
|
|
|
<input type="submit" value="Save"/>
|
2009-12-27 23:53:59 +05:30
|
|
|
{% else %}
|
2012-05-21 00:52:30 +05:30
|
|
|
{% ifequal action "add" %}
|
|
|
|
{% make_button "Cancel" "/person/" %}
|
|
|
|
<input type="hidden" name="action" value="create"/>
|
2012-05-24 17:58:34 +05:30
|
|
|
<input type="submit" value="Create"/>
|
2012-05-21 00:52:30 +05:30
|
|
|
{% else %}
|
|
|
|
{% make_button "Back to People" "/person" %}
|
|
|
|
{% make_button "Add Person" "/person/add" %}
|
|
|
|
{% make_button "Edit Person" "/person/%s/edit" person.handle %}
|
|
|
|
{% make_button "Delete Person" "/person/%s/delete" person.handle %}
|
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
2009-12-27 23:53:59 +05:30
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
2012-05-15 20:15:47 +05:30
|
|
|
</form>
|
2009-11-13 11:02:33 +05:30
|
|
|
{% endblock %}
|
|
|
|
|