From 6c50622c9af853088bb2384d449510ca835e294f Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Thu, 20 Oct 2022 14:35:53 -0400 Subject: [PATCH] Contact Phone Edit: make it possible for extensions to hide the phone_ext field --- templates/CRM/Contact/Form/Edit/Phone.tpl | 2 +- templates/CRM/Contact/Form/Inline/Phone.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Form/Edit/Phone.tpl b/templates/CRM/Contact/Form/Edit/Phone.tpl index aa7f6225c9..ff649fc4ba 100644 --- a/templates/CRM/Contact/Form/Edit/Phone.tpl +++ b/templates/CRM/Contact/Form/Edit/Phone.tpl @@ -24,7 +24,7 @@ {/if} - {$form.phone.$blockId.phone.html} {$form.phone.$blockId.phone_ext.label} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  + {$form.phone.$blockId.phone.html}{ts context="phone_ext"}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  {if $className eq 'CRM_Contact_Form_Contact'} {$form.phone.$blockId.location_type_id.html} {/if} diff --git a/templates/CRM/Contact/Form/Inline/Phone.tpl b/templates/CRM/Contact/Form/Inline/Phone.tpl index b84bc1f718..3e2c3af7c1 100644 --- a/templates/CRM/Contact/Form/Inline/Phone.tpl +++ b/templates/CRM/Contact/Form/Inline/Phone.tpl @@ -31,7 +31,7 @@ {section name='i' start=1 loop=$totalBlocks} {assign var='blockId' value=$smarty.section.i.index} - {$form.phone.$blockId.phone.html} {$form.phone.$blockId.phone_ext.label} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  + {$form.phone.$blockId.phone.html} {ts context="phone_ext"}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four}  {$form.phone.$blockId.location_type_id.html} {$form.phone.$blockId.phone_type_id.html} {$form.phone.$blockId.is_primary.1.html} -- 2.25.1