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-11-23 08:04:35 +05:30
|
|
|
<div class="content" id="IndividualDetail">
|
2011-12-13 04:51:13 +05:30
|
|
|
|
|
|
|
{% include "detail_breadcrumb.html" %}
|
|
|
|
|
2009-11-23 08:04:35 +05:30
|
|
|
<div id="summaryarea">
|
2012-05-17 17:26:59 +05:30
|
|
|
<table class="infolist" style="width:90%;">
|
2009-11-23 08:04:35 +05:30
|
|
|
<trbody>
|
2012-05-26 05:11:47 +05:30
|
|
|
{% if eventform.errors %}
|
|
|
|
<hr>
|
|
|
|
<p id="error">The following fields have errors. Please correct and try again.</p>
|
|
|
|
<div id="error">{{eventform.errors}}</div>
|
|
|
|
<hr>
|
|
|
|
{% endif %}
|
|
|
|
<form method="post">{% csrf_token %}
|
2009-11-13 11:02:33 +05:30
|
|
|
<tr>
|
2012-05-26 05:11:47 +05:30
|
|
|
<td class="ColumnAttribute">{{eventform.event_type.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data"> {% render eventform.event_type user action %}</td>
|
2012-05-26 07:18:59 +05:30
|
|
|
<td class="ColumnAttribute">{{eventform.text.label}}:</td>
|
|
|
|
<td class="ColumnValue" id="data">{% render eventform.text user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-23 08:04:35 +05:30
|
|
|
<td class="ColumnAttribute">Description:</td>
|
2012-05-26 05:11:47 +05:30
|
|
|
<td class="ColumnValue" id="data" colspan="3">{% render eventform.description user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-23 08:04:35 +05:30
|
|
|
<td class="ColumnAttribute">ID:</td>
|
2012-05-26 05:11:47 +05:30
|
|
|
<td class="ColumnValue" id="data" colspan="3">{% render eventform.gramps_id user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-23 08:04:35 +05:30
|
|
|
<td class="ColumnAttribute">Place:</td>
|
2012-05-26 05:11:47 +05:30
|
|
|
<td class="ColumnValue" id="data" colspan="3">{% render eventform.place user action %}</td>
|
2009-11-13 11:02:33 +05:30
|
|
|
</tr>
|
|
|
|
</table>
|
2009-11-23 08:04:35 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2009-11-13 11:02:33 +05:30
|
|
|
<!-- Tabs -->
|
|
|
|
|
|
|
|
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs">
|
2012-05-31 02:35:38 +05:30
|
|
|
<ul class="ui-tab-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
|
|
|
|
<li class="ui-state-default ui-corner-top ui-tab-selected ui-state-active"><a href="#tab-sources">Source Citations</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-notes">Notes</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-media">Media</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-attributes">Attributes</a></li>
|
|
|
|
<li class="ui-corner-top ui-state-default"><a href="#tab-references">References</a></li>
|
2009-11-13 11:02:33 +05:30
|
|
|
</ul>
|
2012-05-31 02:35:38 +05:30
|
|
|
<div class="ui-tab-panel ui-widget-content ui-corner-bottom" id="tab-sources">
|
|
|
|
{% citation_table event user action "/citation/$act/event/%s" event.handle %}
|
2009-12-07 05:05:46 +05:30
|
|
|
</div>
|
2012-05-31 02:35:38 +05:30
|
|
|
<div class="ui-tab-panel ui-widget-content ui-corner-bottom ui-tab-hide" id="tab-notes">
|
|
|
|
{% note_table event user action "/note/$act/event/%s" event.handle %}
|
2009-12-17 05:34:22 +05:30
|
|
|
</div>
|
2012-05-31 02:35:38 +05:30
|
|
|
<div class="ui-tab-panel ui-widget-content ui-corner-bottom ui-tab-hide" id="tab-media">
|
|
|
|
{% media_table event user action "/media/$act/event/%s" event.handle %}
|
2009-12-07 05:05:46 +05:30
|
|
|
</div>
|
2012-05-31 02:35:38 +05:30
|
|
|
<div class="ui-tab-panel ui-widget-content ui-corner-bottom ui-tab-hide" id="tab-attributes">
|
|
|
|
{% attribute_table event user action "/attribute/$act/event/%s" event.handle %}
|
2009-12-07 05:05:46 +05:30
|
|
|
</div>
|
2012-05-31 02:35:38 +05:30
|
|
|
<div class="ui-tab-panel ui-widget-content ui-corner-bottom ui-tab-hide" id="tab-references">
|
2012-05-30 21:24:51 +05:30
|
|
|
{% event_reference_table event user action %}
|
2009-12-07 05:05:46 +05:30
|
|
|
</div>
|
2009-11-13 11:02:33 +05:30
|
|
|
</div>
|
|
|
|
|
2012-05-26 05:11:47 +05:30
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% if action == "edit" %}
|
2012-05-31 01:10:32 +05:30
|
|
|
{% make_button "Cancel" "/event/%s" event.handle %}
|
2012-05-26 05:11:47 +05:30
|
|
|
<input type="hidden" name="action" value="save"/>
|
|
|
|
<input type="submit" value="Save"/>
|
|
|
|
{% else %}
|
|
|
|
{% ifequal action "add" %}
|
|
|
|
{% make_button "Cancel" "/event/" %}
|
|
|
|
<input type="hidden" name="action" value="create"/>
|
|
|
|
<input type="submit" value="Create"/>
|
|
|
|
{% else %}
|
|
|
|
{% make_button "Add Event" "/event/add" %}
|
|
|
|
{% make_button "Edit Event" "/event/%s/edit" event.handle %}
|
|
|
|
{% make_button "Delete Event" "/event/%s/delete" event.handle %}
|
|
|
|
{% endifequal %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2009-11-13 11:02:33 +05:30
|
|
|
{% endblock %}
|
|
|
|
|