summaryrefslogtreecommitdiff
path: root/templates/view_xref_contact_item.tpl
blob: 135174b05a8f919d80f08cf204246028b036f446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{strip}
<td>{$xrefInfo.xref_title|escape}</td>
<td>
	{if isset($xrefInfo.xref) && $xrefInfo.xref > 100}
		{$xrefInfo.xref|escape}
	{else}
		&nbsp;
	{/if}
</td>
<td>{$xrefInfo.xkey|escape} {$xrefInfo.xkey_ext|escape}</td>
<td>{$xrefInfo.data|escape}</td>
<td>
	{if !$isHistory}
		{$xrefInfo.start_date|bit_short_date}
	{else}
		{$xrefInfo.end_date|bit_short_date}
	{/if}
</td>
<td>{$xrefInfo.last_update_date|bit_short_date}</td>
<td>
	<span class="actionicon">
		{if $xrefAllowEdit|default:true && $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 $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}
				{smartlink ititle="Delete" ipackage="liberty" ifile="edit_xref.php" biticon="user-trash" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=1}
			{/if}
		{/if}
	</span>
</td>
{/strip}