summaryrefslogtreecommitdiff
path: root/templates/view_xref_contact_group.tpl
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-06 09:41:03 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-06 09:41:03 +0100
commitfa31eb01f523e1c1e9eb7e4492ba8c308a98447b (patch)
treebc228d73d6bb333ee2f7178ecc3aac8ac364b157 /templates/view_xref_contact_group.tpl
parent17ee494db0a95e791d71261cedf0478e8a40cf4b (diff)
downloadcontact-fa31eb01f523e1c1e9eb7e4492ba8c308a98447b.tar.gz
contact-fa31eb01f523e1c1e9eb7e4492ba8c308a98447b.tar.bz2
contact-fa31eb01f523e1c1e9eb7e4492ba8c308a98447b.zip
xref item templates: drop dead Link/nbsp column; move generics to liberty
- view_xref_address_item.tpl, view_xref_phone_item.tpl: remove &nbsp; second column - view_xref_contact_group.tpl: add 30/30/40% widths to Type/Value/Note - view_xref_text_item.tpl, list_xref_generic.tpl: deleted — fall through to liberty equivalents - ImportContactCSV.php: set xorder explicitly (#P/#F → 1, others → 0) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/view_xref_contact_group.tpl')
-rw-r--r--templates/view_xref_contact_group.tpl35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/view_xref_contact_group.tpl b/templates/view_xref_contact_group.tpl
new file mode 100644
index 0000000..cada284
--- /dev/null
+++ b/templates/view_xref_contact_group.tpl
@@ -0,0 +1,35 @@
+{assign var=xrefAllowEdit value=$allow_edit|default:true}
+{jstab title="`$xrefGroup->mTitle` ({$xrefGroup->mXrefs|@count})"}
+{legend legend=$xrefGroup->mTitle}
+<div class="form-group table-responsive">
+ <table>
+ <thead>
+ <tr>
+ <th style="width:30%">{tr}Type{/tr}</th>
+ <th style="width:30%">{tr}Value{/tr}</th>
+ <th style="width:40%">{tr}Note{/tr}</th>
+ {if $xrefAllowEdit}<th>{tr}Added{/tr}</th><th>{tr}Edit{/tr}</th>{/if}
+ </tr>
+ </thead>
+ <tbody>
+ {if $xrefGroup->mXrefs}
+ {foreach $xrefGroup->mXrefs as $xrefInfo}
+ <tr class="{cycle values="even,odd"}">
+ {include file=$gContent->getXrefRecordTemplate($xrefInfo.template)}
+ </tr>
+ {/foreach}
+ {else}
+ <tr class="norecords">
+ <td colspan="{if $xrefAllowEdit}5{else}3{/if}">{tr}No {$xrefGroup->mTitle} records found{/tr}</td>
+ </tr>
+ {/if}
+ </tbody>
+ </table>
+</div>
+{if $allow_add && $gContent->isValid() && $gContent->hasUpdatePermission() && $xrefGroup->mXGroup ne 'history'}
+ <div>
+ {smartlink ititle="Add record" ipackage="liberty" ifile="add_xref.php" biticon="list-add" content_id=$gContent->mInfo.content_id group=$xrefGroup->mSortOrder}
+ </div>
+{/if}
+{/legend}
+{/jstab}