diff options
Diffstat (limited to 'templates/view_xref_address_item.tpl')
| -rwxr-xr-x | templates/view_xref_address_item.tpl | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/templates/view_xref_address_item.tpl b/templates/view_xref_address_item.tpl index f8a217c..f6216e4 100755 --- a/templates/view_xref_address_item.tpl +++ b/templates/view_xref_address_item.tpl @@ -11,12 +11,13 @@ <td> {$gContent->mInfo.$source[xref].data|escape} </td> +{if $xrefAllowEdit} <td> {if $source ne 'history' } {$gContent->mInfo.$source[xref].start_date|bit_short_date} -{else} +{else} {$gContent->mInfo.$source[xref].end_date|bit_short_date} -{/if} +{/if} </td> {if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )} <td> @@ -27,17 +28,18 @@ <span class="actionicon"> {if $gBitUser->hasPermission( 'p_contact_view_detail' )} {smartlink ititle="View" ifile="view_xref.php" booticon="icon-view" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id} - {/if} + {/if} {if $gBitUser->hasPermission( 'p_contact_update' ) && $source ne 'history' } - {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id} - {/if} + {smartlink ititle="Edit" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id} + {/if} {if $gBitUser->hasPermission( 'p_contact_expunge' ) && $gContent->mInfo.$source[xref].item ne 'KEY_B' } {if $source eq 'history' } {smartlink ititle="Restore" ifile="edit_xref.php" booticon="icon-note-edit" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=-1} {else} {smartlink ititle="Delete" ifile="edit_xref.php" booticon="icon-note-delete" content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id expunge=1} - {/if} - {/if} + {/if} + {/if} </span> </td> +{/if} {/strip} |
