All primary objects can edit, view, create, add, save, add_to, and delete
svn: r19663
This commit is contained in:
@@ -15,55 +15,140 @@
|
||||
|
||||
{% include "detail_breadcrumb.html" %}
|
||||
|
||||
<h3>{{source.title|escape}}</h3>
|
||||
<div id="summaryarea">
|
||||
<table class="infolist" style="width:90%;"> {% comment %} 2 cols {% endcomment %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Title:</td>
|
||||
<td class="ColumnValue" id="data">{{source.title|escape}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Author:</td>
|
||||
<td class="ColumnValue" id="data">{{source.author|escape}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">ID:</td>
|
||||
<td class="ColumnValue" id="data">{{source.gramps_id|escape}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Abbreviation:</td>
|
||||
<td class="ColumnValue" id="data">{{source.abbrev|escape}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Public information:</td>
|
||||
<td class="ColumnValue" id="data">{{source.pubinfo|escape}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% 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>
|
||||
|
||||
<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">
|
||||
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tab-notes">Notes</a></li>
|
||||
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tab-general">General</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-gallery">Gallery</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-data">Data</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-repositories">Repositories</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-references">References</a></li>
|
||||
</ul>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-notes">
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-general">
|
||||
|
||||
<table class="infolist" style="width:90%;">
|
||||
<tr>
|
||||
<td class="ColumnAttribute">{{citationform.text.label}}:</td>
|
||||
<td class="ColumnValue" id="data" colspan="3"> {% render citationform.text user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">{{citationform.page.label}}:</td>
|
||||
<td class="ColumnValue" id="data" colspan="3"> {% render citationform.page user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">{{citationform.confidence.label}}:</td>
|
||||
<td class="ColumnValue" id="data" colspan="3"> {% render citationform.confidence user action %}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-notes">
|
||||
{% note_table citation user action "/note/add/citation/%s" citation.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-gallery">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-data">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-repositories">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-references">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Note: Any changes in the shared citation information will be reflected
|
||||
in the citation itself, for all items that reference the citation.
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>Shared source information</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">
|
||||
<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"><a href="#tab-shared-general">General</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-shared-notes">Notes</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-shared-gallery">Gallery</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-shared-repositories">Repositories</a></li>
|
||||
<li class="ui-corner-top ui-state-default"><a href="#tab-shared-references">References</a></li>
|
||||
</ul>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-shared-general">
|
||||
|
||||
<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>
|
||||
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-shared-notes">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-shared-gallery">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-shared-data">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-shared-repositories">
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-shared-references">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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" %}
|
||||
{% make_button "Back to Citation" "/citation/%s" citation.handle %}
|
||||
<input type="hidden" name="action" value="save"/>
|
||||
<input type="submit" value="Save"/>
|
||||
{% else %}
|
||||
{% ifequal action "add" %}
|
||||
{% make_button "Cancel" "/citation/" %}
|
||||
<input type="hidden" name="action" value="create"/>
|
||||
<input type="submit" value="Create"/>
|
||||
{% else %}
|
||||
{% make_button "Back to Citations" "/citation" %}
|
||||
{% make_button "Add Citation" "/citation/add" %}
|
||||
{% make_button "Edit Citation" "/citation/%s/edit" citation.handle %}
|
||||
{% make_button "Delete Citation" "/citation/%s/delete" citation.handle %}
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
@@ -93,26 +93,26 @@
|
||||
</ul>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom" id="tab-events">
|
||||
<!-- Events -->
|
||||
{% event_table person user action "/person/%s/event" person.handle %}
|
||||
{% event_table person user action "/event/add/person/%s" person.handle %}
|
||||
</div>
|
||||
<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>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-citations">
|
||||
{% citation_table person user action "/person/%s/citation" person.handle %}
|
||||
{% citation_table person user action "/citation/add/person/%s" person.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-attributes">
|
||||
{% attribute_table person user action "/person/%s/attribute" person.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-addresses">
|
||||
{% address_table person user action "/person/%s/address" person.handle %}
|
||||
{% address_table person user action "/place/add/person/%s" person.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom
|
||||
ui-tabs-hide" id="tab-notes">
|
||||
{% note_table person user action "/person/%s/note" person.handle %}
|
||||
{% note_table person user action "/note/add/person/%s" person.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-gallery">
|
||||
{% gallery_table person user action "/person/%s/gallery" person.handle %}
|
||||
{% gallery_table person user action "/media/add/person/%s" person.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-internet">
|
||||
{% internet_table person user action "/person/%s/internet" person.handle %}
|
||||
@@ -124,7 +124,7 @@
|
||||
{% lds_table person user action "/person/%s/lds" person.handle %}
|
||||
</div>
|
||||
<div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide" id="tab-references">
|
||||
{% reference_table person user action "/person/%s/reference" person.handle %}
|
||||
{% reference_table person user action "/reference/add/person/%s" person.handle %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -17,21 +17,29 @@
|
||||
<div id="summaryarea">
|
||||
|
||||
<table class="infolist" style="width:90%;">
|
||||
<trbody>
|
||||
{% if placeform.errors %}
|
||||
<hr>
|
||||
<p id="error">The following fields have errors. Please correct and try again.</p>
|
||||
<div id="error">{{placeform.errors}}</div>
|
||||
<hr>
|
||||
{% endif %}
|
||||
<form method="post">{% csrf_token %}
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Place Name:</td>
|
||||
<td class="Columnvalue" id="data" colpan="3"> {{place.title|escape}}</td>
|
||||
<td class="ColumnAttribute">{{placeform.title.label}}:</td>
|
||||
<td class="Columnvalue" id="data" colpan="3"> {% render placeform.title user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Latitude:</td>
|
||||
<td class="ColumnValue" id="data">{{place.latitude|escape}}</td>
|
||||
<td class="ColumnAttribute">Longitude:</td>
|
||||
<td class="ColumnValue" id="data">{{place.longitude|escape}}</td>
|
||||
<td class="ColumnAttribute">{{placeform.lat.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render placeform.lat user action %}</td>
|
||||
<td class="ColumnAttribute">{{placeform.long.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render placeform.long user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">ID:</td>
|
||||
<td class="ColumnValue" id="data">{{place.gramps_id|escape}}</td>
|
||||
<td class="ColumnAttribute">Private:</td>
|
||||
<td class="ColumnValue" id="data">{{place.private}}
|
||||
<td class="ColumnAttribute">{{placeform.gramps_id.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render placeform.gramps_id user action %}</td>
|
||||
<td class="ColumnAttribute">{{placeform.private.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render placeform.private user action %}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -64,5 +72,26 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if user.is_superuser %}
|
||||
{% if action == "edit" %}
|
||||
{% make_button "Back to Place" "/place/%s" place.handle %}
|
||||
<input type="hidden" name="action" value="save"/>
|
||||
<input type="submit" value="Save"/>
|
||||
{% else %}
|
||||
{% ifequal action "add" %}
|
||||
{% make_button "Cancel" "/place/" %}
|
||||
<input type="hidden" name="action" value="create"/>
|
||||
<input type="submit" value="Create"/>
|
||||
{% else %}
|
||||
{% make_button "Back to Places" "/place" %}
|
||||
{% make_button "Add Place" "/place/add" %}
|
||||
{% make_button "Edit Place" "/place/%s/edit" place.handle %}
|
||||
{% make_button "Delete Place" "/place/%s/delete" place.handle %}
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -17,17 +17,27 @@
|
||||
<div id="summaryarea">
|
||||
|
||||
<table class="infolist" style="width:90%;">
|
||||
<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 %}
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Name:</td>
|
||||
<td class="ColumnValue" id="data" colspan="5">{{repository.name}} </td>
|
||||
<td class="ColumnAttribute">{{repositoryform.name.label}}:</td>
|
||||
<td class="ColumnValue" id="data" colspan="5">{% render repositoryform.name user action %} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Type:</td>
|
||||
<td class="ColumnValue" id="data">{{repository.repository_type}}</td>
|
||||
<td class="ColumnAttribute">ID:</td>
|
||||
<td class="ColumnValue" id="data">{{repository.gramps_id}}</td>
|
||||
<td class="ColumnAttribute" >Private:</td>
|
||||
<td class="ColumnValue" id="data">{{repository.private}}</td>
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -50,6 +60,25 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% 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>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@@ -19,25 +19,28 @@
|
||||
<div id="summaryarea">
|
||||
<table class="infolist" style="width:90%;"> {% comment %} 2 cols {% endcomment %}
|
||||
<tbody>
|
||||
{% if sourceform.errors %}
|
||||
<hr>
|
||||
<p id="error">The following fields have errors. Please correct and try again.</p>
|
||||
<div id="error">{{sourceform.errors}}</div>
|
||||
<hr>
|
||||
{% endif %}
|
||||
<form method="post">{% csrf_token %}
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Title:</td>
|
||||
<td class="ColumnValue" id="data">{{source.title|escape}}</td>
|
||||
<td class="ColumnAttribute">{{sourceform.title.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render sourceform.title user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Author:</td>
|
||||
<td class="ColumnValue" id="data">{{source.author|escape}}</td>
|
||||
<td class="ColumnAttribute">{{sourceform.gramps_id.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render sourceform.gramps_id user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">ID:</td>
|
||||
<td class="ColumnValue" id="data">{{source.gramps_id|escape}}</td>
|
||||
<td class="ColumnAttribute">{{sourceform.abbrev.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render sourceform.abbrev user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Abbreviation:</td>
|
||||
<td class="ColumnValue" id="data">{{source.abbrev|escape}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Public information:</td>
|
||||
<td class="ColumnValue" id="data">{{source.pubinfo|escape}}</td>
|
||||
<td class="ColumnAttribute">{{sourceform.pubinfo.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render sourceform.pubinfo user action %}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -66,4 +69,24 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if user.is_superuser %}
|
||||
{% if action == "edit" %}
|
||||
{% make_button "Back to Source" "/source/%s" source.handle %}
|
||||
<input type="hidden" name="action" value="save"/>
|
||||
<input type="submit" value="Save"/>
|
||||
{% else %}
|
||||
{% ifequal action "add" %}
|
||||
{% make_button "Cancel" "/source/" %}
|
||||
<input type="hidden" name="action" value="create"/>
|
||||
<input type="submit" value="Create"/>
|
||||
{% else %}
|
||||
{% make_button "Back to Sources" "/source" %}
|
||||
{% make_button "Add Source" "/source/add" %}
|
||||
{% make_button "Edit Source" "/source/%s/edit" source.handle %}
|
||||
{% make_button "Delete Source" "/source/%s/delete" source.handle %}
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
@@ -17,19 +17,25 @@
|
||||
<div id="summaryarea">
|
||||
|
||||
<table class="infolist" style="width:90%;">
|
||||
<trbody>
|
||||
{% if tagform.errors %}
|
||||
<hr>
|
||||
<p id="error">The following fields have errors. Please correct and try again.</p>
|
||||
<div id="error">{{tagform.errors}}</div>
|
||||
<hr>
|
||||
{% endif %}
|
||||
<form method="post">{% csrf_token %}
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Name:</td>
|
||||
<td class="ColumnValue" id="data" colspan="5">{{tag.name}} </td>
|
||||
<td class="ColumnAttribute">{{tagform.name.label}}:</td>
|
||||
<td class="ColumnValue" id="data" colspan="5">{% render tagform.name user action %} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute">Type:</td>
|
||||
<td class="ColumnValue" id="data">{{tag.repository_type}}</td>
|
||||
<td class="ColumnAttribute">Color:</td>
|
||||
<td class="ColumnValue" id="data">{{tag.color}}</td>
|
||||
<td class="ColumnAttribute" >Private:</td>
|
||||
<td class="ColumnValue" id="data">{{tag.private}}</td>
|
||||
<td class="ColumnAttribute" >Priority:</td>
|
||||
<td class="ColumnValue" id="data">{{tag.priority}}</td>
|
||||
<td class="ColumnAttribute">{{tagform.color.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render tagform.color user action %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ColumnAttribute" >{{tagform.priority.label}}:</td>
|
||||
<td class="ColumnValue" id="data">{% render tagform.priority user action %}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -52,6 +58,25 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% if user.is_superuser %}
|
||||
{% if action == "edit" %}
|
||||
{% make_button "Back to Tag" "/tag/%s" tag.handle %}
|
||||
<input type="hidden" name="action" value="save"/>
|
||||
<input type="submit" value="Save"/>
|
||||
{% else %}
|
||||
{% ifequal action "add" %}
|
||||
{% make_button "Cancel" "/tag/" %}
|
||||
<input type="hidden" name="action" value="create"/>
|
||||
<input type="submit" value="Create"/>
|
||||
{% else %}
|
||||
{% make_button "Back to Tags" "/tag" %}
|
||||
{% make_button "Add Tag" "/tag/add" %}
|
||||
{% make_button "Edit Tag" "/tag/%s/edit" tag.handle %}
|
||||
{% make_button "Delete Tag" "/tag/%s/delete" tag.handle %}
|
||||
{% endifequal %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% endif %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user