{assign var=xrefAllowEdit value=$allow_edit|default:true} {assign var=tabTitle value=$xrefGroup->mTitle} {assign var=isHistory value=($xrefGroup->mXGroup eq 'history')} {jstab title="`$tabTitle` ({$xrefGroup->mXrefs|@count})"} {legend legend=$tabTitle}
{if $xrefAllowEdit} {if $isHistory}{else}{/if} {/if} {if $xrefGroup->mXrefs} {foreach $xrefGroup->mXrefs as $xrefInfo} {include file=$gContent->getXrefRecordTemplate($xrefInfo.template)} {/foreach} {else} {/if}
{tr}Type{/tr} {tr}Value{/tr} {tr}Notes{/tr}{tr}Ended{/tr}{tr}Started{/tr}{tr}Updated{/tr} {tr}Edit{/tr}
{tr}No {$tabTitle} records found{/tr}
{if $allow_add && $gContent->isValid() && $gContent->hasUpdatePermission() && !$isHistory}
{smartlink ititle="Add record" ipackage="liberty" ifile="add_xref.php" biticon="list-add" content_id=$gContent->mInfo.content_id group=$xrefGroup->mSortOrder}
{/if} {/legend} {/jstab}