{assign var=xrefcnt value=$gContent->mInfo.$source|default:[]|@count} {jstab title="$source_title ($xrefcnt)"} {legend legend=$source_title}
{if $source ne 'history'} {else} {/if} {section name=xref loop=$gContent->mInfo.$source} {if $source ne 'history'} {else} {/if} {sectionelse} {/section}
{tr}Source{/tr} {tr}Data{/tr}{tr}Started{/tr}{tr}Ended{/tr}{tr}Updated{/tr} {tr}Edit{/tr}
{$gContent->mInfo.$source[xref].source_title|escape} {if $gContent->mInfo.$source[xref].xref} {$gContent->mInfo.$source[xref].data|escape} {else} {$gContent->mInfo.$source[xref].data|escape} {/if} {$gContent->mInfo.$source[xref].start_date|bit_short_date}{$gContent->mInfo.$source[xref].end_date|bit_short_date}{$gContent->mInfo.$source[xref].last_update_date|bit_short_date} {if $gBitUser->hasPermission('p_stock_update')} {smartlink ititle="Edit" ifile="edit_xref.php" booticon="fa-pen-to-square" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id} {/if}
{tr}No {$source_title} records found{/tr}
{if $gBitUser->hasPermission('p_stock_update') && $source ne 'history'}
{smartlink ititle="Add record" ifile="add_xref.php" booticon="fa-plus" content_id=$gContent->mInfo.content_id group=$group}
{/if} {/legend} {/jstab}