Move test for showing site admin panel to site admin panel template, so doesn't have to be repeated in various individual templates.
This commit is contained in:
parent
b354d97972
commit
910526ddd5
1 changed files with 15 additions and 13 deletions
|
@ -2,17 +2,19 @@
|
||||||
|
|
||||||
<#-- Template for admin panel on individual profile page -->
|
<#-- Template for admin panel on individual profile page -->
|
||||||
|
|
||||||
<section id="admin">
|
<#if individual.showAdminPanel>
|
||||||
<h3>Admin Panel</h3><a class="edit-individual" href="${individual.editUrl}">Edit this individual</a>
|
<section id="admin">
|
||||||
|
<h3>Admin Panel</h3><a class="edit-individual" href="${individual.editUrl}">Edit this individual</a>
|
||||||
|
|
||||||
<#if verbosePropertyForm??>
|
<#if verbosePropertyForm??>
|
||||||
<#assign formId = "verbosePropertyForm">
|
<#assign formId = "verbosePropertyForm">
|
||||||
<form id="${formId}" action="${verbosePropertyForm.action}#${formId}" method="get">
|
<form id="${formId}" action="${verbosePropertyForm.action}#${formId}" method="get">
|
||||||
<input type="hidden" name="verbose" value="${verbosePropertyForm.verboseFieldValue}" />
|
<input type="hidden" name="verbose" value="${verbosePropertyForm.verboseFieldValue}" />
|
||||||
<span>Verbose property display for this session is <b>${verbosePropertyForm.currentValue}</b></span>
|
<span>Verbose property display for this session is <b>${verbosePropertyForm.currentValue}</b></span>
|
||||||
<input type="submit" id="submit" value="Turn ${verbosePropertyForm.newValue}" />
|
<input type="submit" id="submit" value="Turn ${verbosePropertyForm.newValue}" />
|
||||||
</form>
|
</form>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<p class="uri-link">Resource URI: <a href="${individual.uri}" target="_blank">${individual.uri}</a></p>
|
<p class="uri-link">Resource URI: <a href="${individual.uri}" target="_blank">${individual.uri}</a></p>
|
||||||
</section>
|
</section>
|
||||||
|
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue