2009-12-06 05:09:43 +00:00
{% extends "view_page_detail.html" %}
{% load my_tags %}
{% block content %}
< script type = "text/javascript" >
$(function(){
$('#tabs').tabs();
});
< / script >
< div class = "content" id = "IndividualDetail" >
2011-10-16 17:00:32 +00:00
2011-12-12 23:21:13 +00:00
{% filter breadcrumb %}
{% format "/browse|Browse,/person|People,/person/%s|Person [%s],/person/%s/name/%s|Name #%s" object.handle object.gramps_id object.handle order order %}
{% endfilter %}
2011-10-16 17:00:32 +00:00
2009-12-27 18:23:59 +00:00
< h3 > {{person|make_name:user}} [{{person.gramps_id}}]< / h3 >
2009-12-06 05:09:43 +00:00
< div id = "summaryarea" >
2012-05-17 11:56:59 +00:00
< table class = "infolist" style = "width:90%;" > {% comment %} 4 cols {% endcomment %}
2009-12-06 05:09:43 +00:00
< tbody >
2012-05-20 22:31:11 +00:00
{% for error in nameform.errors %}
< p id = "error" > {{error}}< / a > < br >
{% endfor %}
2012-05-15 14:45:47 +00:00
< form method = "post" > {% csrf_token %}
2009-12-06 05:09:43 +00:00
< tr >
2012-05-20 22:31:11 +00:00
< td class = "ColumnAttribute" > {{surnameform.surname.label}}:< / td >
< td class = "ColumnValue" id = "data" > {% render surnameform.surname user action False "" "get_focus" %}< / td >
< td class = "ColumnAttribute" > {{surnameform.prefix.label}}:< / td >
< td class = "ColumnValue" id = "data" > {% render surnameform.prefix user action %}< / td >
2009-12-06 05:09:43 +00:00
< / tr >
2011-10-13 02:33:20 +00:00
< tr >
2012-05-20 22:31:11 +00:00
< td class = "ColumnAttribute" > {{nameform.first_name.label}}:< / td >
< td class = "ColumnValue" id = "data" > {% render nameform.first_name user action %}< / td >
< td class = "ColumnAttribute" > {{nameform.call.label}}:< / td >
< td class = "ColumnValue" id = "data" > {% render nameform.call user action %}< / td >
2009-12-06 05:09:43 +00:00
< tr >
< / tr >
2012-05-20 22:31:11 +00:00
< 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 >
2009-12-06 05:09:43 +00:00
< tr >
2012-05-20 22:31:11 +00:00
< td class = "ColumnAttribute" > {{nameform.name_type.label}}:< / td >
< td class = "ColumnValue" id = "data" > {% render nameform.name_type user action %}< / td >
2009-12-06 23:35:46 +00:00
< / tr >
2009-12-17 04:10:41 +00:00
< tr >
2012-05-20 22:31:11 +00:00
< td class = "ColumnAttribute" > {{nameform.preferred.label}}:< / td >
{% if nameform.model.preferred %}
2010-01-01 15:16:20 +00:00
< td class = "ColumnValue" id = "data" > True< / td >
2009-12-17 04:10:41 +00:00
{% else %}
2012-05-20 22:31:11 +00:00
< td class = "ColumnValue" id = "data" > {% render nameform.preferred user action %}< / td >
2009-12-17 04:10:41 +00:00
{% endif %}
2012-05-20 22:31:11 +00:00
< td class = "ColumnAttribute" > {{nameform.private.label}}:< / td >
< td class = "ColumnValue" id = "data" > {% render nameform.private user action %}< / td >
2009-12-06 05:09:43 +00:00
< / tr >
< / tbody >
< / table >
< / div >
< / div >
2009-12-20 02:34:04 +00:00
2009-12-06 05:09:43 +00:00
<!-- 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-12-06 23:35:46 +00:00
< li class = "ui-state-default ui-corner-top ui-tabs-selected ui-state-active" > < a href = "#tab-general" > General< / a > < / li >
2012-05-15 14:45:47 +00:00
< li class = "ui-corner-top ui-state-default" > < a href = "#tab-surnames" > Surnames< / a > < / li >
< li class = "ui-corner-top ui-state-default" > < a href = "#tab-names" > Other Names< / a > < / li >
2009-12-06 05:09:43 +00:00
< 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-26 05:40:32 +00:00
2009-12-27 18:23:59 +00:00
< div class = "ui-tabs-panel ui-widget-content ui-corner-bottom"
id="tab-general">
2011-10-13 01:29:46 +00:00
< div style = "overflow: auto; height:150px;" >
2009-12-27 18:23:59 +00:00
< table border = "1" >
2012-05-20 22:31:11 +00:00
< tr > < td style = "background-color: #FFF2C5;" > {{nameform.group_as.label}}: < / td >
< td > {% render nameform.group_as user action %}< / td >
2009-12-26 05:40:32 +00:00
< / tr >
2012-05-20 22:31:11 +00:00
< tr > < td style = "background-color: #FFF2C5;" > {{nameform.sort_as.label}}: < / td >
< td > {% render nameform.sort_as user action %}< / td >
2009-12-26 05:40:32 +00:00
< / tr >
2012-05-20 22:31:11 +00:00
< tr > < td style = "background-color: #FFF2C5;" > {{nameform.display_as.label}}: < / td >
< td > {% render nameform.display_as user action %}< / td >
2009-12-26 05:40:32 +00:00
< / tr >
2012-05-20 22:31:11 +00:00
< tr > < td style = "background-color: #FFF2C5;" > {{nameform.text.label}}: < / td >
< td > {% render nameform.text user action %}< / td >
2009-12-26 05:40:32 +00:00
< / tr >
< / table >
2009-12-27 18:23:59 +00:00
< / div >
2009-12-06 05:09:43 +00:00
< / div >
2012-05-15 14:45:47 +00:00
< div class = "ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id = "tab-surnames" >
2012-05-20 22:31:11 +00:00
{% surname_table person user action "/person/%s/name/%s/surname" person.handle nameform.model.order %}
2012-05-15 14:45:47 +00:00
< / div >
2010-01-01 15:16:20 +00:00
< div class = "ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id = "tab-names" >
{% name_table person user action "/person/%s/name" person.handle %}
< / div >
2009-12-06 05:09:43 +00:00
< div class = "ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id = "tab-sources" >
2012-05-20 22:31:11 +00:00
{% source_table nameform.model user action "/person/%s/name/%s/source" person.handle nameform.model.order %}
2009-12-06 05:09:43 +00:00
< / div >
2009-12-27 18:23:59 +00:00
< div class = "ui-tabs-panel ui-widget-content ui-corner-bottom
ui-tabs-hide" id="tab-notes">
2012-05-20 22:31:11 +00:00
{% note_table nameform.model user action "/person/%s/name/%s/note" person.handle nameform.model.order %}
2009-12-06 05:09:43 +00:00
< / div >
< / div >
2012-05-15 14:45:47 +00:00
< input type = "button"
value="Back to Person"
onclick="document.location.href='/person/{{person.handle}}'"/>
2009-12-17 00:04:22 +00:00
{% if user.is_authenticated %}
{% ifequal action "edit" %}
< input type = "hidden" name = "action" value = "save" / >
2012-05-15 14:45:47 +00:00
< input type = "submit" value = "Save" / >
2009-12-17 00:04:22 +00:00
{% else %}
2012-05-15 14:45:47 +00:00
< input type = "button"
value="Edit Name"
onclick="document.location.href='/person/{{person.handle}}/name/{{order}}/edit'"/>
< input type = "button"
value="Add Name"
onclick="document.location.href='/person/{{person.handle}}/name/add'"/>
< input type = "button"
value="Delete Name"
onclick="document.location.href='/person/{{person.handle}}/name/{{order}}/delete'"/>
2009-12-17 00:04:22 +00:00
{% endifequal %}
{% else %}
{% endif %}
2012-05-15 14:45:47 +00:00
< / form >
2009-12-06 05:09:43 +00:00
{% endblock %}