-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract contact summary basic block to its own tpl
- Loading branch information
Showing
2 changed files
with
42 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{*<div class="crm-clear crm-inline-block-content">*} | ||
<div class="crm-summary-row"> | ||
<div class="crm-label" id="tagLink"> | ||
<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$contactId&selectedChild=tag"}" | ||
title="{ts}Edit Tags{/ts}">{ts}Tags{/ts}</a> | ||
</div> | ||
<div class="crm-content" id="tags"> | ||
{foreach from=$contactTag item=tagName key=tagId} | ||
<span class="crm-tag-item" {if !empty($allTags.$tagId.color)}style="background-color: {$allTags.$tagId.color}; color: {$allTags.$tagId.color|colorContrast};"{/if} title="{$allTags.$tagId.description|escape}"> | ||
{$tagName} | ||
</span> | ||
{/foreach} | ||
</div> | ||
</div> | ||
<div class="crm-summary-row"> | ||
<div class="crm-label">{ts}Contact Type{/ts}</div> | ||
<div class="crm-content crm-contact_type_label"> | ||
{if isset($contact_type_label)}{$contact_type_label}{/if} | ||
</div> | ||
</div> | ||
<div class="crm-summary-row"> | ||
<div class="crm-label"> | ||
{ts}Contact ID{/ts}{if !empty($userRecordUrl)} / {ts}User ID{/ts}{/if} | ||
</div> | ||
<div class="crm-content"> | ||
<span class="crm-contact-contact_id">{$contactId}</span> | ||
{if !empty($userRecordUrl)} | ||
<span class="crm-contact-user_record_id"> | ||
/ <a title="View user record" class="user-record-link" | ||
href="{$userRecordUrl}">{$userRecordId}</a> | ||
</span> | ||
{/if} | ||
</div> | ||
</div> | ||
<div class="crm-summary-row"> | ||
<div class="crm-label">{ts}External ID{/ts}</div> | ||
<div class="crm-content crm-contact_external_identifier_label"> | ||
{if isset($external_identifier)}{$external_identifier}{/if} | ||
</div> | ||
</div> | ||
{*</div>*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters