X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContact%2FForm%2FInline%2FCommunicationPreferences.tpl;h=66230db102c1ecd792467af6b733f43cf898d514;hb=3f98995adabf8359c8e90c1329db5a30d4f8f8a4;hp=0e7e3ae67cfe1a2a2371320c1dd153b8b38616ce;hpb=e425a965789b9e5a86069069c8fa18c50d3e2b6a;p=civicrm-core.git
diff --git a/templates/CRM/Contact/Form/Inline/CommunicationPreferences.tpl b/templates/CRM/Contact/Form/Inline/CommunicationPreferences.tpl
index 0e7e3ae67c..66230db102 100644
--- a/templates/CRM/Contact/Form/Inline/CommunicationPreferences.tpl
+++ b/templates/CRM/Contact/Form/Inline/CommunicationPreferences.tpl
@@ -1,6 +1,6 @@
{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
@@ -65,9 +65,10 @@
{$form.preferred_mail_format.label}
+ {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"}
- {$form.preferred_mail_format.html} {help id="id-emailFormat" file="CRM/Contact/Form/Contact.hlp"}
+ {$form.preferred_mail_format.html}
{/if}
@@ -90,9 +91,11 @@
{$form.email_greeting_id.html|crmAddClass:big}
-
- {$email_greeting_display}
-
+ {if !empty($email_greeting_display)}
+
+ {$email_greeting_display}
+
+ {/if}
{if !empty($form.email_greeting_custom)}
{$form.email_greeting_custom.html|crmAddClass:big}
@@ -101,7 +104,7 @@
{/if}
-
+
{if !empty($form.postal_greeting_id)}
@@ -110,9 +113,11 @@
{$form.postal_greeting_id.html|crmAddClass:big}
-
- {$postal_greeting_display}
-
+ {if !empty($postal_greeting_display)}
+
+ {$postal_greeting_display}
+
+ {/if}
{if !empty($form.postal_greeting_custom)}
{$form.postal_greeting_custom.html|crmAddClass:big}
@@ -129,9 +134,11 @@
{$form.addressee_id.html|crmAddClass:big}
-
- {$addressee_display}
-
+ {if !empty($addressee_display)}
+
+ {$addressee_display}
+
+ {/if}
{if !empty($form.addressee_custom)}
{$form.addressee_custom.html|crmAddClass:big}
@@ -140,44 +147,7 @@
{/if}
-
+
-
-{literal}
-
-{/literal}
+{include file="CRM/Contact/Form/Edit/CommunicationPreferences.js.tpl"}
\ No newline at end of file