2009-12-06 10:39:43 +05:30
|
|
|
{% extends "view_page_detail.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2012-05-31 03:09:01 +05:30
|
|
|
$(function(){
|
|
|
|
$('#tabs').tabs({
|
|
|
|
'select': function(event, ui){
|
2012-05-31 05:03:44 +05:30
|
|
|
document.location.hash = ui.panel.id;
|
|
|
|
}
|
2012-05-31 03:09:01 +05:30
|
|
|
});
|
|
|
|
});
|
2009-12-06 10:39:43 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="content" id="IndividualDetail">
|
2011-10-16 22:30:32 +05:30
|
|
|
|
2011-12-13 04:51:13 +05:30
|
|
|
{% filter breadcrumb %}
|
2012-06-05 02:28:05 +05:30
|
|
|
{% format "/browse|Browse" %} ||
|
|
|
|
{% format "/person|People" %} ||
|
|
|
|
{% format "/person/%s|Person [%s]" object.handle object.gramps_id %} ||
|
|
|
|
{% format "/person/%s/name/%s|Name #%s" object.handle order order %}
|
2011-12-13 04:51:13 +05:30
|
|
|
{% endfilter %}
|
|
|
|
|
2012-05-24 22:52:14 +05:30
|
|
|
<h3>{{nameform.model|make_name:user}} [{{person.gramps_id}}]</h3>
|
2009-12-06 10:39:43 +05:30
|
|
|
<div id="summaryarea">
|
2012-05-17 17:26:59 +05:30
|
|
|
<table class="infolist" style="width:90%;"> {% comment %} 4 cols {% endcomment %}
|
2009-12-06 10:39:43 +05:30
|
|
|
<tbody>
|
|
|
|
|
2012-05-21 04:01:11 +05:30
|
|
|
{% for error in nameform.errors %}
|
|
|
|
<p id="error">{{error}}</a><br>
|
|
|
|
{% endfor %}
|
|
|
|
|
2012-05-15 20:15:47 +05:30
|
|
|
<form method="post">{% csrf_token %}
|
2012-05-22 00:20:03 +05:30
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{surnameform.name_origin_type.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.name_origin_type user action %}</td>
|
|
|
|
<td class="ColumnAttribute">{{nameform.name_type.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.name_type user action %}</td>
|
|
|
|
</tr>
|
2009-12-06 10:39:43 +05:30
|
|
|
<tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.surname.label}}:</td>
|
2012-06-07 06:19:02 +05:30
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.surname user action "get_focus" %}</td>
|
2012-05-21 04:01:11 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.prefix.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.prefix user action %}</td>
|
2009-12-06 10:39:43 +05:30
|
|
|
</tr>
|
2011-10-13 08:03:20 +05:30
|
|
|
<tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.first_name.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.first_name user action %}</td>
|
2012-07-22 09:40:18 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.nick.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.nick user action %}</td>
|
2009-12-06 10:39:43 +05:30
|
|
|
</tr>
|
2012-07-22 09:40:18 +05:30
|
|
|
<tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.title.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.title user action %}</td>
|
|
|
|
<td class="ColumnAttribute">{{nameform.suffix.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.suffix user action %}</td>
|
2012-07-22 09:40:18 +05:30
|
|
|
</tr>
|
2009-12-06 10:39:43 +05:30
|
|
|
<tr>
|
2012-07-22 09:40:18 +05:30
|
|
|
<td class="ColumnAttribute"></td>
|
|
|
|
<td class="ColumnValue" id="data"></td>
|
|
|
|
<td class="ColumnAttribute">{{nameform.call.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.call user action %}</td>
|
2009-12-07 05:05:46 +05:30
|
|
|
</tr>
|
2009-12-17 09:40:41 +05:30
|
|
|
<tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<td class="ColumnAttribute">{{nameform.preferred.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.preferred user action %}</td>
|
|
|
|
<td class="ColumnAttribute">{{nameform.private.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render nameform.private user action %}</td>
|
2009-12-06 10:39:43 +05:30
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2009-12-20 08:04:04 +05:30
|
|
|
|
2009-12-06 10:39:43 +05:30
|
|
|
<!-- Tabs -->
|
|
|
|
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs" style="border: none;">
|
2009-12-06 10:39:43 +05:30
|
|
|
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
|
2012-07-27 20:37:36 +05:30
|
|
|
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a class="tab-general" href="#tab-general">General</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-surnames" href="#tab-surnames">Surname</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-names" href="#tab-names">Alternate Names</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-citations" href="#tab-citations">Citation</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-notes" href="#tab-notes">Note</a></li>
|
2009-12-06 10:39:43 +05:30
|
|
|
</ul>
|
2009-12-26 11:10:32 +05:30
|
|
|
|
2009-12-27 23:53:59 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom"
|
2012-07-25 06:17:09 +05:30
|
|
|
id="tab-general" style="background-color: #f4f0ec;">
|
2011-10-13 06:59:46 +05:30
|
|
|
<div style="overflow: auto; height:150px;">
|
2009-12-27 23:53:59 +05:30
|
|
|
<table border="1">
|
2012-05-21 04:01:11 +05:30
|
|
|
<tr><td style="background-color: #FFF2C5;">{{nameform.group_as.label}}: </td>
|
|
|
|
<td>{% render nameform.group_as user action %}</td>
|
2009-12-26 11:10:32 +05:30
|
|
|
</tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<tr><td style="background-color: #FFF2C5;">{{nameform.sort_as.label}}: </td>
|
|
|
|
<td>{% render nameform.sort_as user action %}</td>
|
2009-12-26 11:10:32 +05:30
|
|
|
</tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<tr><td style="background-color: #FFF2C5;">{{nameform.display_as.label}}: </td>
|
|
|
|
<td>{% render nameform.display_as user action %}</td>
|
2009-12-26 11:10:32 +05:30
|
|
|
</tr>
|
2012-05-21 04:01:11 +05:30
|
|
|
<tr><td style="background-color: #FFF2C5;">{{nameform.text.label}}: </td>
|
|
|
|
<td>{% render nameform.text user action %}</td>
|
2009-12-26 11:10:32 +05:30
|
|
|
</tr>
|
|
|
|
</table>
|
2009-12-27 23:53:59 +05:30
|
|
|
</div>
|
|
|
|
|
2009-12-06 10:39:43 +05:30
|
|
|
</div>
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-surnames" style="background-color: #f4f0ec;">
|
2012-05-31 01:10:32 +05:30
|
|
|
{% surname_table person user action "/person/%s/name/%s/surname/add" person.handle nameform.model.order %}
|
2012-05-15 20:15:47 +05:30
|
|
|
</div>
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-names" style="background-color: #f4f0ec;">
|
2010-01-01 20:46:20 +05:30
|
|
|
{% name_table person user action "/person/%s/name" person.handle %}
|
|
|
|
</div>
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-citations" style="background-color: #f4f0ec;">
|
2012-07-20 23:10:54 +05:30
|
|
|
{% citation_table nameform.model user action "/citation/add/person/%s/name/%s" person.handle nameform.model.order %}
|
2009-12-06 10:39:43 +05:30
|
|
|
</div>
|
2009-12-27 23:53:59 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom
|
2012-07-25 06:17:09 +05:30
|
|
|
ui-tabs-hide" id="tab-notes" style="background-color: #f4f0ec;">
|
2012-12-07 17:58:02 +05:30
|
|
|
{% note_table nameform.model user action "/note/$act/person/%s/name/%s" person.handle nameform.model.order %}
|
2009-12-06 10:39:43 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-06-15 06:10:11 +05:30
|
|
|
{% if user.is_superuser %}
|
2012-05-24 17:58:34 +05:30
|
|
|
{% ifequal action "add" %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% make_button "Cancel" "/person/%s" person.handle args "#tab-names" %}
|
2012-05-24 17:58:34 +05:30
|
|
|
<input type="hidden" name="action" value="create"/>
|
2012-06-05 07:18:39 +05:30
|
|
|
<input type="hidden" name="search" value="{{search}}"/>
|
|
|
|
<input type="hidden" name="page" value="{{page}}"/>
|
2012-05-24 17:58:34 +05:30
|
|
|
<input type="submit" value="Create"/>
|
|
|
|
{% else %}
|
2009-12-17 05:34:22 +05:30
|
|
|
{% ifequal action "edit" %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% make_button "Cancel" "/person/" args "#tab-names" %}
|
2009-12-17 05:34:22 +05:30
|
|
|
<input type="hidden" name="action" value="save"/>
|
2012-06-05 07:18:39 +05:30
|
|
|
<input type="hidden" name="search" value="{{search}}"/>
|
|
|
|
<input type="hidden" name="page" value="{{page}}"/>
|
2012-05-15 20:15:47 +05:30
|
|
|
<input type="submit" value="Save"/>
|
2009-12-17 05:34:22 +05:30
|
|
|
{% else %}
|
2012-12-02 03:43:30 +05:30
|
|
|
<div style="background-color: lightgray; padding: 2px 0px 0px 2px; clear: both;">
|
|
|
|
{% make_button "+Add Name" "/person/%s/name/add" person.handle args %}
|
|
|
|
{% make_button "?Edit Name" "/person/%s/name/%s/edit" person.handle order args %}
|
|
|
|
{% make_button "-Delete Name" "/person/%s/name/%s/delete" person.handle order args %}
|
|
|
|
</div>
|
2012-05-24 17:58:34 +05:30
|
|
|
{% endifequal %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% endifequal %}
|
2009-12-17 05:34:22 +05:30
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
2012-05-15 20:15:47 +05:30
|
|
|
</form>
|
2009-12-06 10:39:43 +05:30
|
|
|
{% endblock %}
|
|
|
|
|