Contact Phone Edit: make it possible for extensions to hide the phone_ext field
authorMathieu Lutfy <mathieu@symbiotic.coop>
Thu, 20 Oct 2022 18:35:53 +0000 (14:35 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Sun, 23 Oct 2022 18:27:04 +0000 (14:27 -0400)
templates/CRM/Contact/Form/Edit/Phone.tpl
templates/CRM/Contact/Form/Inline/Phone.tpl

index aa7f6225c990421097ed419a2907893939d4e0e1..ff649fc4ba5aae75334f60d38a832eef20c6b5a2 100644 (file)
@@ -24,7 +24,7 @@
   </tr>
 {/if}
 <tr id="Phone_Block_{$blockId}">
-  <td>{$form.phone.$blockId.phone.html} {$form.phone.$blockId.phone_ext.label}&nbsp;{$form.phone.$blockId.phone_ext.html|crmAddClass:four}&nbsp;</td>
+  <td>{$form.phone.$blockId.phone.html}<span class="crm-phone-ext">{ts context="phone_ext"}ext.{/ts}&nbsp;{$form.phone.$blockId.phone_ext.html|crmAddClass:four}&nbsp;</span></td>
   {if $className eq 'CRM_Contact_Form_Contact'}
   <td>{$form.phone.$blockId.location_type_id.html}</td>
   {/if}
index b84bc1f718718423606e9e7ef12dafb617b125b5..3e2c3af7c10ed16dabc39d140f217d8a39bbba54 100644 (file)
@@ -31,7 +31,7 @@
     {section name='i' start=1 loop=$totalBlocks}
     {assign var='blockId' value=$smarty.section.i.index}
     <tr id="Phone_Block_{$blockId}" {if $blockId gt $actualBlockCount}class="hiddenElement"{/if}>
-        <td>{$form.phone.$blockId.phone.html} {$form.phone.$blockId.phone_ext.label}&nbsp;{$form.phone.$blockId.phone_ext.html|crmAddClass:four}&nbsp;</td>
+        <td>{$form.phone.$blockId.phone.html}<span class="crm-phone-ext"> {ts context="phone_ext"}ext.{/ts}&nbsp;{$form.phone.$blockId.phone_ext.html|crmAddClass:four}&nbsp;</span></td>
         <td>{$form.phone.$blockId.location_type_id.html}</td>
         <td>{$form.phone.$blockId.phone_type_id.html}</td>
         <td align="center" class="crm-phone-is_primary">{$form.phone.$blockId.is_primary.1.html}</td>