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">
|
2010-01-01 20:46:20 +05:30
|
|
|
<h3>{{nameform|render_name:user}} [{{person.gramps_id}}]</h3>
|
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-11-19 08:11:37 +05:30
|
|
|
|
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-02-19 08:06:20 +05:30
|
|
|
<td class="ColumnAttribute"></td>
|
|
|
|
<td class="ColumnValue" id="data"></td>
|
2010-01-02 07:39:09 +05:30
|
|
|
<td rowspan="7" colspan="2" style="border:solid 2px #7D5925;">Image:</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2009-12-20 07:27:17 +05:30
|
|
|
<tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
<td class="ColumnAttribute" colspan="2"></td>
|
2009-12-27 23:53:59 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.suffix.label}}</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.suffix user action %}</td>
|
2009-12-20 07:27:17 +05:30
|
|
|
</tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2009-12-27 23:53:59 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.first_name.label}}</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.first_name user action nameform.model.person.probably_alive "[Living]" %}</td>
|
2009-12-27 23:53:59 +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>
|
|
|
|
<tr>
|
2009-12-27 23:53:59 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.name_type.label}}</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.name_type user action %}</td>
|
2009-11-19 08:11:37 +05:30
|
|
|
</tr>
|
2009-12-20 07:27:17 +05:30
|
|
|
<tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
<td class="ColumnAttribute" colspan="2"></td>
|
2009-12-27 23:53:59 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.title.label}}</td>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render nameform.title user action %}</td>
|
2009-12-20 07:27:17 +05:30
|
|
|
</tr>
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2009-12-27 23:53:59 +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>
|
2009-12-27 23:53:59 +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>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
<tr>
|
2010-01-01 20:46:20 +05:30
|
|
|
<td class="ColumnAttribute">{{personform.private.label}}</td>
|
|
|
|
<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>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-sources">Sources</a></li>
|
|
|
|
<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>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-sources">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% source_table person user action "/person/%s/source" 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 %}
|
|
|
|
|