2011-12-12 09:13:58 +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-06-20 08:04:15 +05:30
|
|
|
$('#shared-tabs').tabs({
|
|
|
|
'select': function(event, ui){
|
|
|
|
document.location.hash = ui.panel.id;
|
|
|
|
}
|
|
|
|
});
|
2012-05-31 03:09:01 +05:30
|
|
|
});
|
2011-12-12 09:13:58 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="content" id="IndividualDetail">
|
|
|
|
|
2011-12-13 04:51:13 +05:30
|
|
|
{% include "detail_breadcrumb.html" %}
|
2011-12-12 09:13:58 +05:30
|
|
|
|
2012-05-27 00:18:20 +05:30
|
|
|
{% if citationform.errors or sourceform.errors %}
|
|
|
|
<hr>
|
|
|
|
<p id="error">The following fields have errors. Please correct and try again.</p>
|
|
|
|
<div id="error">{{citationform.errors}}</div>
|
|
|
|
<div id="error">{{sourceform.errors}}</div>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
|
|
|
<form method="post">{% csrf_token %}
|
|
|
|
|
|
|
|
<!-- Tabs -->
|
|
|
|
<h2>Citation information</h2>
|
|
|
|
|
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;">
|
2012-05-27 00:18:20 +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-notes" href="#tab-notes">Note</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-media" href="#tab-media">Media</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-data" href="#tab-data">Data</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-references" href="#tab-references">Reference</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-history" href="#tab-history">History</a></li>
|
2012-05-27 00:18:20 +05:30
|
|
|
</ul>
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-general" style="background-color: #f4f0ec;">
|
2012-05-27 00:18:20 +05:30
|
|
|
|
|
|
|
<table class="infolist" style="width:90%;">
|
2011-12-12 09:13:58 +05:30
|
|
|
<tr>
|
2012-05-27 00:18:20 +05:30
|
|
|
<td class="ColumnAttribute">{{citationform.text.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render citationform.text user action %}</td>
|
2011-12-12 09:13:58 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-27 00:18:20 +05:30
|
|
|
<td class="ColumnAttribute">{{citationform.gramps_id.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data"> {% render citationform.gramps_id user action %}</td>
|
|
|
|
<td class="ColumnAttribute">{{citationform.private.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data"> {% render citationform.private user action %}</td>
|
2011-12-12 09:13:58 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-27 00:18:20 +05:30
|
|
|
<td class="ColumnAttribute">{{citationform.page.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render citationform.page user action %}</td>
|
2011-12-12 09:13:58 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-05-27 00:18:20 +05:30
|
|
|
<td class="ColumnAttribute">{{citationform.confidence.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render citationform.confidence user action %}</td>
|
2011-12-12 09:13:58 +05:30
|
|
|
</tr>
|
|
|
|
</table>
|
2012-05-27 00:18:20 +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-notes" style="background-color: #f4f0ec;">
|
2012-05-30 18:24:06 +05:30
|
|
|
{% note_table citation user action "/note/$act/citation/%s" citation.handle %}
|
2012-05-27 00:18:20 +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-media" style="background-color: #f4f0ec;">
|
2012-05-31 02:35:38 +05:30
|
|
|
{% media_table citation user action "/media/$act/citation/%s" citation.handle %}
|
2012-05-27 00:18:20 +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-data" style="background-color: #f4f0ec;">
|
2012-05-31 02:35:38 +05:30
|
|
|
{% data_table citation user action "/data/$act/citation/%s" citation.handle %}
|
2012-05-27 00:18:20 +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-references" style="background-color: #f4f0ec;">
|
2012-05-30 21:24:51 +05:30
|
|
|
{% citation_reference_table citation user action %}
|
2012-05-27 00:18:20 +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-history" style="background-color: #f4f0ec;">
|
2012-06-20 08:04:15 +05:30
|
|
|
{% history_table citation user action %}
|
|
|
|
</div>
|
2011-12-12 09:13:58 +05:30
|
|
|
</div>
|
|
|
|
|
2012-05-27 00:18:20 +05:30
|
|
|
<p>Note: Any changes in the shared citation information will be reflected
|
|
|
|
in the citation itself, for all items that reference the citation.
|
|
|
|
</p>
|
2011-12-12 09:13:58 +05:30
|
|
|
|
2012-05-27 00:18:20 +05:30
|
|
|
<hr>
|
|
|
|
|
2012-07-20 22:41:13 +05:30
|
|
|
<h2>Source information (shared)</h2>
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="shared-tabs" style="border: none;">
|
2011-12-12 09:13:58 +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-shared-general" href="#tab-shared-general">General</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-shared-notes" href="#tab-shared-notes">Notes</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-shared-media" href="#tab-shared-media">Media</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-shared-repositories" href="#tab-shared-repositories">Repositories</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-shared-references" href="#tab-shared-references">References</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a class="tab-shared-history" href="#tab-shared-history">History</a></li>
|
2011-12-12 09:13:58 +05:30
|
|
|
</ul>
|
2012-07-25 06:17:09 +05:30
|
|
|
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-shared-general" style="background-color: #f4f0ec;">
|
2012-05-27 00:18:20 +05:30
|
|
|
|
|
|
|
<table class="infolist" style="width:90%;">
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{sourceform.title.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render sourceform.title user action %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{sourceform.author.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render sourceform.author user action %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{sourceform.gramps_id.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data"> {% render sourceform.gramps_id user action %}</td>
|
|
|
|
<td class="ColumnAttribute">{{sourceform.private.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data"> {% render sourceform.private user action %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{sourceform.abbrev.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render sourceform.abbrev user action %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="ColumnAttribute">{{sourceform.pubinfo.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data" colspan="3"> {% render sourceform.pubinfo user action %}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2011-12-12 09:13:58 +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-shared-notes" style="background-color: #f4f0ec;">
|
2012-05-30 18:24:06 +05:30
|
|
|
{% note_table source user action "/note/$act/source/%s" source.handle %}
|
2011-12-12 09:13:58 +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-shared-media" style="background-color: #f4f0ec;">
|
2012-05-31 02:35:38 +05:30
|
|
|
{% media_table source user action "/media/$act/source/%s" source.handle %}
|
2011-12-12 09:13:58 +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-shared-repositories" style="background-color: #f4f0ec;">
|
2012-05-31 02:35:38 +05:30
|
|
|
{% repository_table source user action "/repository/$act/source/%s" source.handle %}
|
2012-05-27 00:18:20 +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-shared-references" style="background-color: #f4f0ec;">
|
2012-05-31 02:35:38 +05:30
|
|
|
{% citation_reference_table source user action %}
|
2011-12-12 09:13:58 +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-shared-history" style="background-color: #f4f0ec;">
|
2012-06-20 08:04:15 +05:30
|
|
|
{% history_table source user action %}
|
|
|
|
</div>
|
2011-12-12 09:13:58 +05:30
|
|
|
</div>
|
|
|
|
|
2012-05-27 00:18:20 +05:30
|
|
|
<p>Note: Any changes in the shared source information will be reflected
|
|
|
|
in the source itself, for all items that reference the source.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% if action == "edit" %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% make_button "Cancel" "/citation/%s" citation.handle args %}
|
2012-05-27 00:18:20 +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-27 00:18:20 +05:30
|
|
|
<input type="submit" value="Save"/>
|
|
|
|
{% else %}
|
|
|
|
{% ifequal action "add" %}
|
2012-06-05 07:18:39 +05:30
|
|
|
{% make_button "Cancel" "/citation/" args %}
|
2012-05-27 00:18:20 +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-27 00:18:20 +05:30
|
|
|
<input type="submit" value="Create"/>
|
|
|
|
{% else %}
|
2012-12-02 03:43:30 +05:30
|
|
|
<div style="background-color: lightgray; padding: 2px 0px 0px 2px; clear: both;">
|
|
|
|
{% make_button "+Add Citation" "/citation/add" args %}
|
|
|
|
{% make_button "?Edit Citation" "/citation/%s/edit" citation.handle args %}
|
|
|
|
{% make_button "-Delete Citation" "/citation/%s/delete" citation.handle args %}
|
|
|
|
</div>
|
2012-05-27 00:18:20 +05:30
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2011-12-12 09:13:58 +05:30
|
|
|
{% endblock %}
|