diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-10 07:11:23 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-10 07:11:23 +0100 |
| commit | ac7e77afc9e6dadfbcaa1628d680c83801b04bef (patch) | |
| tree | 77e42a5922ecb5b4363334f30140169c1232b2fe /templates | |
| parent | 0b4a0fe697dac8eb32f02ff157193ee8feee6ade (diff) | |
| download | liberty-ac7e77afc9e6dadfbcaa1628d680c83801b04bef.tar.gz liberty-ac7e77afc9e6dadfbcaa1628d680c83801b04bef.tar.bz2 liberty-ac7e77afc9e6dadfbcaa1628d680c83801b04bef.zip | |
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
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_xref_value_item.tpl | 2 | ||||
| -rw-r--r-- | 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 @@ <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> </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} |
