2012-05-16 01:58:46 +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
|
|
|
});
|
|
|
|
});
|
2012-05-16 01:58:46 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="content" id="IndividualDetail">
|
|
|
|
|
|
|
|
{% 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 %} ||
|
2012-07-22 23:00:44 +05:30
|
|
|
{% format "/person/%s/name/%s|Name #%s" object.handle order order %} ||
|
|
|
|
{% format "/person/%s/name/%s/surname/%s|Surname #%s" object.handle order sorder sorder %}
|
2012-05-16 01:58:46 +05:30
|
|
|
{% endfilter %}
|
|
|
|
|
|
|
|
<h3>{{person|make_name:user}} [{{person.gramps_id}}]</h3>
|
|
|
|
<div id="summaryarea">
|
2012-05-17 17:26:59 +05:30
|
|
|
<table class="infolist" style="width:90%;"> {% comment %} 4 cols {% endcomment %}
|
2012-05-16 01:58:46 +05:30
|
|
|
<tbody>
|
2012-05-24 17:58:34 +05:30
|
|
|
{% for error in form.errors %}
|
|
|
|
<p id="error">{{error}}</p>
|
|
|
|
{% endfor %}
|
2012-05-16 01:58:46 +05:30
|
|
|
<form method="post">{% csrf_token %}
|
|
|
|
<tr>
|
2012-05-22 00:20:03 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.name_origin_type.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.name_origin_type user action %}</td>
|
2012-05-16 01:58:46 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-22 00:20:03 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.primary.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.primary user action %}</td>
|
|
|
|
</tr>
|
2012-05-16 01:58:46 +05:30
|
|
|
<tr>
|
2012-05-22 00:20:03 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.prefix.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.prefix user action %}</td>
|
2012-05-16 01:58:46 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-22 00:20:03 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.surname.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.surname user action %}</td>
|
2012-05-16 01:58:46 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-22 00:20:03 +05:30
|
|
|
<td class="ColumnAttribute">{{surnameform.connector.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render surnameform.connector user action %}</td>
|
2012-05-16 01:58:46 +05:30
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2012-06-15 06:10:11 +05:30
|
|
|
{% if user.is_superuser %}
|
2012-05-24 17:58:34 +05:30
|
|
|
{% if action == "edit" %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% make_button "Cancel" "/person/%s/name/%s/surname/%s" person.handle order sorder args %}
|
2012-05-16 01:58:46 +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-16 01:58:46 +05:30
|
|
|
<input type="submit" value="Save">
|
2012-05-24 17:58:34 +05:30
|
|
|
{% else %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% if action == "add" %}
|
|
|
|
{% make_button "Cancel" "/person/%s/name/%s" person.handle order args %}
|
|
|
|
<input type="hidden" name="action" value="create"/>
|
|
|
|
<input type="hidden" name="search" value="{{search}}"/>
|
|
|
|
<input type="hidden" name="page" value="{{page}}"/>
|
|
|
|
<input type="submit" value="Save">
|
2012-05-24 17:58:34 +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 Surname" "/person/%s/name/%s/surname/add" person.handle order args %}
|
|
|
|
{% make_button "?Edit Surname" "/person/%s/name/%s/surname/%s/edit" person.handle order sorder args %}
|
|
|
|
{% make_button "-Delete Surname" "/person/%s/name/%s/surname/%s/delete" person.handle order sorder args %}
|
|
|
|
</div>
|
2012-05-24 17:58:34 +05:30
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2012-05-16 01:58:46 +05:30
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
|