2009-12-06 10:39:43 +05:30
|
|
|
{% extends "view_page_detail.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
$('#tabs').tabs();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="content" id="IndividualDetail">
|
2009-12-20 07:27:17 +05:30
|
|
|
<h3>Name for Person [{{person.gramps_id}}]</h3>
|
2009-12-06 10:39:43 +05:30
|
|
|
<div id="summaryarea">
|
2009-12-07 05:05:46 +05:30
|
|
|
<table class="infolist"> {% comment %} 4 cols {% endcomment %}
|
2009-12-06 10:39:43 +05:30
|
|
|
<tbody>
|
|
|
|
|
|
|
|
{% if user.is_authenticated %}
|
2009-12-17 05:34:22 +05:30
|
|
|
{% ifequal action "edit" %}
|
|
|
|
{% for error in form.errors %}
|
|
|
|
{{error}}<br>
|
|
|
|
{% endfor %}
|
|
|
|
<form method="post">
|
|
|
|
{% endifequal %}
|
2009-12-20 08:04:04 +05:30
|
|
|
{% endif %}
|
2009-12-06 10:39:43 +05:30
|
|
|
<tr>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.surname.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.surname|render:action}}</td>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.prefix.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.prefix|render:action}}</td>
|
2009-12-06 10:39:43 +05:30
|
|
|
</tr>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.first_name.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.first_name|render:action}}</td>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.call.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.call|render:action}}</td>
|
2009-12-06 10:39:43 +05:30
|
|
|
<tr>
|
|
|
|
</tr>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.title.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.title|render:action}}</td>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.suffix.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.suffix|render:action}}</td>
|
2009-12-06 10:39:43 +05:30
|
|
|
<tr>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.patronymic.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.patronymic|render:action}}</td>
|
2009-12-17 09:40:41 +05:30
|
|
|
<td class="ColumnAttribute">{{form.name_type.label}}:</td>
|
2009-12-17 05:34:22 +05:30
|
|
|
<td class="ColumnValue" id="data">{{form.name_type|render:action}}</td>
|
2009-12-07 05:05:46 +05:30
|
|
|
</tr>
|
2009-12-17 09:40:41 +05:30
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{form.preferred.label}}:</td>
|
|
|
|
{% if form.model.preferred %}
|
|
|
|
<td class="ColumnValue" id="data" colspan="3">True</td>
|
|
|
|
{% else %}
|
|
|
|
<td class="ColumnValue" id="data" colspan="3">{{form.preferred|render:action}}</td>
|
|
|
|
{% endif %}
|
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 -->
|
|
|
|
<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-12-07 05:05:46 +05:30
|
|
|
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tab-general">General</a></li>
|
2009-12-06 10:39:43 +05:30
|
|
|
<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-notes">Notes</a></li>
|
|
|
|
</ul>
|
2009-12-07 05:05:46 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-general">
|
2009-12-06 10:39:43 +05:30
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-sources">
|
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-notes">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2009-12-20 07:27:17 +05:30
|
|
|
[<a href="/person/{{person.handle}}/">Back to Person</a>]
|
2009-12-17 05:34:22 +05:30
|
|
|
{% if user.is_authenticated %}
|
|
|
|
{% ifequal action "edit" %}
|
|
|
|
<input type="hidden" name="action" value="save"/>
|
|
|
|
<input type="submit" value="Submit"/>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
[<a href="/person/{{person.handle}}/name/{{order}}/edit">Edit Name</a>]
|
|
|
|
[<a href="/person/{{person.handle}}/name/{{order}}/delete">Delete Name</a>]
|
|
|
|
{% endifequal %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
2009-12-06 10:39:43 +05:30
|
|
|
{% endblock %}
|
|
|
|
|