From ac7e77afc9e6dadfbcaa1628d680c83801b04bef Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Wed, 10 Jun 2026 07:11:23 +0100 Subject: liberty: fix view_xref_value_item — drop empty cell, gate date/action cols on xrefAllowEdit; fix edit_xref_value_item — use template_title for type label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- templates/edit_xref_value_item.tpl | 2 +- templates/view_xref_value_item.tpl | 7 ++++--- 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 @@
{formlabel label="Type"} {forminput} -

{$xrefInfo.source_title|escape}

+

{$xrefInfo.template_title|escape}

{/forminput}
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} {$xrefInfo.xref_title|escape} -  {$xrefInfo.xkey|escape} {$xrefInfo.xkey_ext|escape} +{if $xrefAllowEdit|default:true} {if !$isHistory} {$xrefInfo.start_date|bit_short_date} @@ -13,10 +13,10 @@ {$xrefInfo.last_update_date|bit_short_date} - {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} +{/if} {/strip} -- cgit v1.3