From 4aced66b785cfbfba5618c0e26123a486468774c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 30 Aug 2018 11:14:01 -0400 Subject: [PATCH] Extract contact summary basic block to its own tpl --- templates/CRM/Contact/Page/Inline/Basic.tpl | 41 +++++++++++++++++++++ templates/CRM/Contact/Page/View/Summary.tpl | 40 +------------------- 2 files changed, 42 insertions(+), 39 deletions(-) create mode 100644 templates/CRM/Contact/Page/Inline/Basic.tpl diff --git a/templates/CRM/Contact/Page/Inline/Basic.tpl b/templates/CRM/Contact/Page/Inline/Basic.tpl new file mode 100644 index 0000000000..f6123d37c5 --- /dev/null +++ b/templates/CRM/Contact/Page/Inline/Basic.tpl @@ -0,0 +1,41 @@ +{*
*} +
+ +
+ {foreach from=$contactTag item=tagName key=tagId} + + {$tagName} + + {/foreach} +
+
+
+
{ts}Contact Type{/ts}
+
+ {if isset($contact_type_label)}{$contact_type_label}{/if} +
+
+
+
+ {ts}Contact ID{/ts}{if !empty($userRecordUrl)} / {ts}User ID{/ts}{/if} +
+
+ {$contactId} + {if !empty($userRecordUrl)} + +  / {$userRecordId} + + {/if} +
+
+
+
{ts}External ID{/ts}
+
+ {if isset($external_identifier)}{$external_identifier}{/if} +
+
+{*
*} diff --git a/templates/CRM/Contact/Page/View/Summary.tpl b/templates/CRM/Contact/Page/View/Summary.tpl index b8a7a22381..c8ce4311d3 100644 --- a/templates/CRM/Contact/Page/View/Summary.tpl +++ b/templates/CRM/Contact/Page/View/Summary.tpl @@ -159,45 +159,7 @@ {/if}
-
- -
- {foreach from=$contactTag item=tagName key=tagId} - - {$tagName} - - {/foreach} -
-
-
-
{ts}Contact Type{/ts}
-
- {if isset($contact_type_label)}{$contact_type_label}{/if} -
-
-
-
- {ts}Contact ID{/ts}{if !empty($userRecordUrl)} / {ts}User ID{/ts}{/if} -
-
- {$contactId} - {if !empty($userRecordUrl)} - -  / {$userRecordId} - - {/if} -
-
-
-
{ts}External ID{/ts}
-
- {if isset($external_identifier)}{$external_identifier}{/if} -
-
+ {include file="CRM/Contact/Page/Inline/Basic.tpl"}
{/crmRegion} -- 2.25.1