summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/edit_xref_value_item.tpl2
-rw-r--r--templates/view_xref_value_item.tpl7
2 files changed, 5 insertions, 4 deletions
diff --git a/templates/edit_xref_value_item.tpl b/templates/edit_xref_value_item.tpl
index 99e2541..92c33e7 100644
--- a/templates/edit_xref_value_item.tpl
+++ b/templates/edit_xref_value_item.tpl
@@ -13,7 +13,7 @@
<div class="form-group">
{formlabel label="Type"}
{forminput}
- <p class="form-control-static">{$xrefInfo.source_title|escape}</p>
+ <p class="form-control-static">{$xrefInfo.template_title|escape}</p>
{/forminput}
</div>
diff --git a/templates/view_xref_value_item.tpl b/templates/view_xref_value_item.tpl
index 4d44c3a..d915402 100644
--- a/templates/view_xref_value_item.tpl
+++ b/templates/view_xref_value_item.tpl
@@ -1,8 +1,8 @@
{strip}
<td>{$xrefInfo.xref_title|escape}</td>
-<td>&nbsp;</td>
<td>{$xrefInfo.xkey|escape}</td>
<td>{$xrefInfo.xkey_ext|escape}</td>
+{if $xrefAllowEdit|default:true}
<td>
{if !$isHistory}
{$xrefInfo.start_date|bit_short_date}
@@ -13,10 +13,10 @@
<td>{$xrefInfo.last_update_date|bit_short_date}</td>
<td>
<span class="actionicon">
- {if $xrefAllowEdit|default:true && $gContent->hasUpdatePermission() && !$isHistory}
+ {if $gContent->hasUpdatePermission() && !$isHistory}
{smartlink ititle="Edit" ipackage="liberty" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id}
{/if}
- {if $xrefAllowEdit|default:true && $gContent->hasExpungePermission()}
+ {if $gContent->hasExpungePermission()}
{if $isHistory}
{smartlink ititle="Restore" ipackage="liberty" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=-1}
{else}
@@ -25,4 +25,5 @@
{/if}
</span>
</td>
+{/if}
{/strip}