summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-06 10:22:08 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-06 10:22:08 +0100
commitd1ca207109e01e511636f39a6de4e35082f44f43 (patch)
tree57cba7a29e054f030c80b1e129cd9c5e10001a38 /templates
parentc9fba0f4a2f905e45af794a8d50a7c9af19ced0e (diff)
downloadcontact-d1ca207109e01e511636f39a6de4e35082f44f43.tar.gz
contact-d1ca207109e01e511636f39a6de4e35082f44f43.tar.bz2
contact-d1ca207109e01e511636f39a6de4e35082f44f43.zip
edit: switch xref tabs to LibertyXrefGroup path
Replace contact_xref_groups/getXrefGroupList() with loadXrefInfo() + gXrefInfo; edit.tpl uses {foreach $gXrefInfo->mGroups}. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/edit.tpl12
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/edit.tpl b/templates/edit.tpl
index ca3b9cb..9caf1d9 100755
--- a/templates/edit.tpl
+++ b/templates/edit.tpl
@@ -99,16 +99,14 @@
{/legend}
- {if $gContent->mInfo.contact_xref_groups && $gContent->isValid()}
+ {if $gXrefInfo->mGroups && $gContent->isValid()}
{jstabs}
- {section name=xrefGroup loop=$gContent->mInfo.contact_xref_groups}
- {include file=$gContent->getXrefListTemplate($gContent->mInfo.contact_xref_groups[xrefGroup].template)
- source=$gContent->mInfo.contact_xref_groups[xrefGroup].source
- source_title=$gContent->mInfo.contact_xref_groups[xrefGroup].title
- group=$gContent->mInfo.contact_xref_groups[xrefGroup].sort_order
+ {foreach $gXrefInfo->mGroups as $xrefGroup}
+ {include file=$gContent->getXrefListTemplate($xrefGroup->mTemplate)
+ xrefGroup=$xrefGroup
allow_add=true
allow_edit=true}
- {/section}
+ {/foreach}
{/jstabs}
{/if}