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-18 08:28:29 +05:30
|
|
|
<div class="content" id="IndividualDetail">
|
2011-12-13 04:51:13 +05:30
|
|
|
|
|
|
|
{% include "detail_breadcrumb.html" %}
|
2009-11-18 08:28:29 +05:30
|
|
|
|
2012-05-25 07:15:16 +05:30
|
|
|
<h2>{{familyform.father|render_name:user}} and {{familyform.mother|render_name:user}}</h2>
|
2009-11-18 08:28:29 +05:30
|
|
|
|
|
|
|
<div id="summaryarea">
|
2012-05-17 17:26:59 +05:30
|
|
|
<table class="infolist" style="width:90%;"> {% comment %} 4 cols {% endcomment %}
|
2009-11-18 08:28:29 +05:30
|
|
|
<tbody>
|
2012-05-25 07:15:16 +05:30
|
|
|
{% for error in personform.errors %}
|
|
|
|
<p id="error">Error in person: {{error}}</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% for error in nameform.errors %}
|
|
|
|
<p id="error">Error in name: {{error}}</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% for error in surnameform.errors %}
|
|
|
|
<p id="error">Error in surname: {{error}}</p>
|
|
|
|
{% endfor %}
|
|
|
|
<form method="post">{% csrf_token %}
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2009-11-18 08:28:29 +05:30
|
|
|
<th colspan="2">Father</th>
|
|
|
|
<th colspan="2">Mother</th>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Name:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data"><a href="/person/{{familyform.father.handle}}">{% render familyform.father user action %}</a></td>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Name:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data"><a href="/person/{{familyform.mother.handle}}">{% render familyform.mother user action %}</a></td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2012-05-25 07:15:16 +05:30
|
|
|
{% if user.is_authenticated or not familyform.father.probably_alive %}
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Birth:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.father.birth|render_date:user}}</td>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Birth:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.mother.birth|render_date:user}}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2009-11-19 08:11:37 +05:30
|
|
|
{% else %}
|
|
|
|
<tr>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnAttribute">{{familyform.father.death.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render familyform.father user action %}</td>
|
2009-11-19 08:11:37 +05:30
|
|
|
<td class="ColumnAttribute">Birth:</td>
|
|
|
|
<td class="ColumnValue" id="data">[Private]</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Death:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.father.death|render_date:user}}</td>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Death:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.mother.death|render_date:user}}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
2009-11-18 08:28:29 +05:30
|
|
|
</tbody>
|
2009-11-13 11:02:33 +05:30
|
|
|
</table>
|
2010-01-02 07:39:09 +05:30
|
|
|
<table class="infolist">
|
2009-11-18 08:28:29 +05:30
|
|
|
<tbody>
|
|
|
|
<tr>
|
2010-01-02 07:39:09 +05:30
|
|
|
<th colspan="4">Relationship information</th>
|
2009-11-18 08:28:29 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">ID:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.gramps_id}}</td>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Type:</td>
|
|
|
|
<td class="ColumnValue" id="data">RELTYPE</td>
|
2010-01-02 07:39:09 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-18 08:28:29 +05:30
|
|
|
<td class="ColumnAttribute">Marker:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.marker_type}}</td>
|
2010-01-02 07:39:09 +05:30
|
|
|
<td class="ColumnAttribute">Private:</td>
|
2012-05-25 07:15:16 +05:30
|
|
|
<td class="ColumnValue" id="data">{{familyform.private}}</td>
|
2009-11-18 08:28:29 +05:30
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</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-children">Children</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-events">Events</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-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-lds">LDS</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-children">
|
|
|
|
<!-- Events -->
|
2009-12-27 23:53:59 +05:30
|
|
|
{% children_table family user action "/family/%s/children" family.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-events">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% event_table family user action "/family/%s/children" family.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 family user action "/family/%s/children" family.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 family user action "/family/%s/children" family.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-notes">
|
2009-12-27 23:53:59 +05:30
|
|
|
{% note_table family user action "/family/%s/children" family.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 family user action "/family/%s/children" family.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 family user action "/family/%s/children" family.handle %}
|
2009-11-16 04:17:43 +05:30
|
|
|
</div>
|
2009-11-13 11:02:33 +05:30
|
|
|
</div>
|
2012-05-25 07:15:16 +05:30
|
|
|
|
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% if action == "edit" %}
|
|
|
|
{% make_button "Back to Family" "/family/%s" family.handle %}
|
|
|
|
<input type="hidden" name="action" value="save"/>
|
|
|
|
<input type="submit" value="Save"/>
|
|
|
|
{% else %}
|
|
|
|
{% ifequal action "add" %}
|
|
|
|
{% make_button "Cancel" "/family/" %}
|
|
|
|
<input type="hidden" name="action" value="create"/>
|
|
|
|
<input type="submit" value="Create"/>
|
|
|
|
{% else %}
|
|
|
|
{% make_button "Back to Families" "/family" %}
|
|
|
|
{% make_button "Add Family" "/family/add" %}
|
|
|
|
{% make_button "Edit Family" "/family/%s/edit" family.handle %}
|
|
|
|
{% make_button "Delete Family" "/family/%s/delete" family.handle %}
|
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2009-11-13 11:02:33 +05:30
|
|
|
{% endblock %}
|
|
|
|
|