diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-06 10:42:26 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-06 10:42:26 +0100 |
| commit | 5ac3b6dbd4b2ee1280b18b26b85b552504b09827 (patch) | |
| tree | c178afdd8268eda380ae63fcab9aced035ab7e1d | |
| parent | 9002d254e614cf126b14d7987b0b74c3559c3186 (diff) | |
| download | contact-5ac3b6dbd4b2ee1280b18b26b85b552504b09827.tar.gz contact-5ac3b6dbd4b2ee1280b18b26b85b552504b09827.tar.bz2 contact-5ac3b6dbd4b2ee1280b18b26b85b552504b09827.zip | |
address/phone item templates: replace $source with $isHistory
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rwxr-xr-x | templates/view_xref_address_item.tpl | 6 | ||||
| -rwxr-xr-x | templates/view_xref_phone_item.tpl | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/view_xref_address_item.tpl b/templates/view_xref_address_item.tpl index 368aef6..fc351c7 100755 --- a/templates/view_xref_address_item.tpl +++ b/templates/view_xref_address_item.tpl @@ -10,7 +10,7 @@ </td> {if $xrefAllowEdit} <td> -{if $source ne 'history' } +{if !$isHistory } {$xrefInfo.start_date|bit_short_date} {else} {$xrefInfo.end_date|bit_short_date} @@ -26,11 +26,11 @@ {if $gBitUser->hasPermission( 'p_contact_view_detail' )} {smartlink ititle="View" ifile="view_xref.php" biticon="view-fullscreen" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id} {/if} - {if $gBitUser->hasPermission( 'p_contact_update' ) && $source ne 'history' } + {if $gBitUser->hasPermission( 'p_contact_update' ) && !$isHistory } {smartlink ititle="Edit" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id} {/if} {if $gBitUser->hasPermission( 'p_contact_expunge' ) && $xrefInfo.item ne 'KEY_B' } - {if $source eq 'history' } + {if $isHistory } {smartlink ititle="Restore" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=-1} {else} {smartlink ititle="Delete" ifile="edit_xref.php" biticon="user-trash" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=1} diff --git a/templates/view_xref_phone_item.tpl b/templates/view_xref_phone_item.tpl index 751948f..e24decc 100755 --- a/templates/view_xref_phone_item.tpl +++ b/templates/view_xref_phone_item.tpl @@ -10,7 +10,7 @@ </td> {if $xrefAllowEdit} <td> -{if $source ne 'history' } +{if !$isHistory } {$xrefInfo.start_date|bit_short_date} {else} {$xrefInfo.end_date|bit_short_date} @@ -23,11 +23,11 @@ {/if} <td> <span class="actionicon"> - {if $gBitUser->hasPermission( 'p_contact_update' ) && $source ne 'history' } + {if $gBitUser->hasPermission( 'p_contact_update' ) && !$isHistory } {smartlink ititle="Edit" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id} {/if} {if $gBitUser->hasPermission( 'p_contact_expunge' ) } - {if $source eq 'history' } + {if $isHistory } {smartlink ititle="Restore" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=-1} {else} {smartlink ititle="Delete" ifile="edit_xref.php" biticon="user-trash" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=1} |
