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-12-07 05:05:46 +05:30
|
|
|
<div class="content" id="IndividualDetail">
|
2011-10-16 22:30:32 +05:30
|
|
|
|
2011-12-13 04:51:13 +05:30
|
|
|
{% include "detail_breadcrumb.html" %}
|
2011-10-16 22:30:32 +05:30
|
|
|
|
2009-12-07 05:05:46 +05:30
|
|
|
<div id="summaryarea">
|
|
|
|
|
2012-05-17 17:26:59 +05:30
|
|
|
<table class="infolist" style="width:90%;">
|
2012-05-27 00:18:20 +05:30
|
|
|
<trbody>
|
|
|
|
{% if repositoryform.errors %}
|
|
|
|
<hr>
|
|
|
|
<p id="error">The following fields have errors. Please correct and try again.</p>
|
|
|
|
<div id="error">{{repositoryform.errors}}</div>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
|
|
|
<form method="post">{% csrf_token %}
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2012-05-27 00:18:20 +05:30
|
|
|
<td class="ColumnAttribute">{{repositoryform.name.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="5">{% render repositoryform.name user action %} </td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-27 00:18:20 +05:30
|
|
|
<td class="ColumnAttribute">{{repositoryform.repository_type.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3">{% render repositoryform.repository_type user action %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{repositoryform.gramps_id.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render repositoryform.gramps_id user action %}</td>
|
|
|
|
<td class="ColumnAttribute" >{{repositoryform.private.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render repositoryform.private user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<!-- 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-07 05:05:46 +05:30
|
|
|
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tabs-addresses">Addresses</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tabs-internet">Internet</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tabs-notes">Notes</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tabs-references">References</a></li>
|
2009-11-13 11:02:33 +05:30
|
|
|
</ul>
|
2009-12-07 05:05:46 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tabs-addresses">
|
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-internet">
|
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-notes">
|
|
|
|
</div>
|
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tabs-references">
|
2012-05-30 21:24:51 +05:30
|
|
|
{% repository_reference_table repository user action %}
|
2009-12-07 05:05:46 +05:30
|
|
|
</div>
|
2009-11-13 11:02:33 +05:30
|
|
|
</div>
|
|
|
|
|
2012-05-27 00:18:20 +05:30
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% if action == "edit" %}
|
|
|
|
{% make_button "Back to Repository" "/repository/%s" repository.handle %}
|
|
|
|
<input type="hidden" name="action" value="save"/>
|
|
|
|
<input type="submit" value="Save"/>
|
|
|
|
{% else %}
|
|
|
|
{% ifequal action "add" %}
|
|
|
|
{% make_button "Cancel" "/repository/" %}
|
|
|
|
<input type="hidden" name="action" value="create"/>
|
|
|
|
<input type="submit" value="Create"/>
|
|
|
|
{% else %}
|
|
|
|
{% make_button "Back to Repositories" "/repository" %}
|
|
|
|
{% make_button "Add Repository" "/repository/add" %}
|
|
|
|
{% make_button "Edit Repository" "/repository/%s/edit" repository.handle %}
|
|
|
|
{% make_button "Delete Repository" "/repository/%s/delete" repository.handle %}
|
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2009-11-13 11:02:33 +05:30
|
|
|
{% endblock %}
|
|
|
|
|