Skip to content
Snippets Groups Projects
Commit ab18bf18 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #386 from mlutfy/tpl-mailformat

Make it possible to hide the pref mail format in a buildForm hook
parents 1d07459e a304f73d
Branches
Tags
No related merge requests found
......@@ -110,10 +110,11 @@
</tr>
<tr>
<td>{$form.is_opt_out.html} {$form.is_opt_out.label} {help id="id-optOut" file="CRM/Contact/Form/Contact.hlp"}</td>
<td>{$form.preferred_mail_format.label} &nbsp;
{$form.preferred_mail_format.html} {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"}
</td>
{if !empty($form.preferred_mail_format)}
<td>{$form.preferred_mail_format.label} &nbsp;
{$form.preferred_mail_format.html} {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"}
</td>
{/if}
</tr>
</table>
</div><!-- /.crm-accordion-body -->
......
......@@ -60,6 +60,8 @@
{$form.preferred_language.html}
</div>
</div>
{if !empty($form.preferred_mail_format)}
<div class="crm-summary-row">
<div class="crm-label">
{$form.preferred_mail_format.label}
......@@ -68,6 +70,7 @@
{$form.preferred_mail_format.html} {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"}
</div>
</div>
{/if}
{if !empty($form.email_greeting_id)}
<div class="crm-summary-row">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment