$form->applyFilter('__ALL__', 'trim');
//Email box
- $form->addField("email[$blockId][email]", ['entity' => 'email', 'aria-label' => ts('Email %1', [1 => $blockId])]);
+ $form->addField("email[$blockId][email]", [
+ 'entity' => 'email',
+ 'aria-label' => ts('Email %1', [1 => $blockId]),
+ 'label' => ts('Email %1', [1 => $blockId]),
+ ]);
$form->addRule("email[$blockId][email]", ts('Email is not valid.'), 'email');
if (isset($form->_contactType) || $blockEdit) {
//Block type
'placeholder' => NULL,
]);
//main phone number with crm_phone class
- $form->addField("phone[$blockId][phone]", ['entity' => 'phone', 'class' => 'crm_phone twelve', 'aria-label' => ts('Phone %1', [1 => $blockId])]);
- $form->addField("phone[$blockId][phone_ext]", ['entity' => 'phone', 'aria-label' => ts('Phone Extension %1', [1 => $blockId])]);
+ $form->addField("phone[$blockId][phone]", [
+ 'entity' => 'phone',
+ 'class' => 'crm_phone twelve',
+ 'aria-label' => ts('Phone %1', [1 => $blockId]),
+ 'label' => ts('Phone %1:', [1 => $blockId]),
+ ]);
+ $form->addField("phone[$blockId][phone_ext]", [
+ 'entity' => 'phone',
+ 'aria-label' => ts('Phone Extension %1', [1 => $blockId]),
+ 'label' => ts('ext.', ['context' => 'phone_ext']),
+ ]);
if (isset($form->_contactType) || $blockEdit) {
//Block type select
$form->addField("phone[$blockId][location_type_id]", [
</tr>
{/if}
<tr id="Phone_Block_{$blockId}">
- <td>{$form.phone.$blockId.phone.html} {ts context="phone_ext"}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four} </td>
+ <td>{$form.phone.$blockId.phone.html} {$form.phone.$blockId.phone_ext.label} {$form.phone.$blockId.phone_ext.html|crmAddClass:four} </td>
{if $className eq 'CRM_Contact_Form_Contact'}
<td>{$form.phone.$blockId.location_type_id.html}</td>
{/if}
{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} {ts context="phone_ext"}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four} </td>
+ <td>{$form.phone.$blockId.phone.html} {$form.phone.$blockId.phone_ext.label} {$form.phone.$blockId.phone_ext.html|crmAddClass:four} </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>
{include file="CRM/Contact/Form/Edit/Address.tpl" blockId=1}
<table class="form-layout-compressed">
<tr>
- <td><label>{ts}Email 1:{/ts}</label></td>
+ <td>{$form.email.1.email.label}</td>
<td>{$form.email.1.email.html|crmAddClass:email}</td>
</tr>
<tr>
- <td><label>{ts}Email 2:{/ts}</label></td>
+ <td>{$form.email.2.email.label}</td>
<td>{$form.email.2.email.html|crmAddClass:email}</td>
</tr>
<tr>
- <td><label>{ts}Phone 1:{/ts}</label></td>
- <td>{$form.phone.1.phone.html|crmAddClass:phone} {ts context="phone_ext"}ext.{/ts} {$form.phone.1.phone_ext.html|crmAddClass:four} {$form.phone.1.phone_type_id.html}</td>
+ <td>{$form.phone.1.phone.label}</td>
+ <td>{$form.phone.1.phone.html|crmAddClass:phone} {$form.phone.1.phone_ext.label} {$form.phone.1.phone_ext.html|crmAddClass:four} {$form.phone.1.phone_type_id.html}</td>
</tr>
<tr>
- <td><label>{ts}Phone 2:{/ts}</label></td>
- <td>{$form.phone.2.phone.html|crmAddClass:phone} {ts context="phone_ext"}ext.{/ts} {$form.phone.2.phone_ext.html|crmAddClass:four} {$form.phone.2.phone_type_id.html}</td>
+ <td>{$form.phone.2.phone.label}</td>
+ <td>{$form.phone.2.phone.html|crmAddClass:phone} {$form.phone.2.phone_ext.label} {$form.phone.2.phone_ext.html|crmAddClass:four} {$form.phone.2.phone_type_id.html}</td>
</tr>
</table>