From 516e435a3a9f7016b75cc418b41fd64654df8924 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 21 Mar 2018 15:23:05 +1300 Subject: [PATCH] NFC reformat whitespace in Email.tpl files --- templates/CRM/Contact/Form/Edit/Email.tpl | 61 +++++++++-------- templates/CRM/Contact/Form/Inline/Email.tpl | 76 +++++++++++---------- 2 files changed, 71 insertions(+), 66 deletions(-) diff --git a/templates/CRM/Contact/Form/Edit/Email.tpl b/templates/CRM/Contact/Form/Edit/Email.tpl index 94323e8dafb7..c0a9021f2a72 100644 --- a/templates/CRM/Contact/Form/Edit/Email.tpl +++ b/templates/CRM/Contact/Form/Edit/Email.tpl @@ -28,42 +28,45 @@ {* @var $blockId Contains the current email block id in evaluation, and assigned in the CRM/Contact/Form/Location.php file *} {if !$addBlock} - - {ts}Email{/ts} + + {ts}Email{/ts}   {ts}add{/ts} - - {if $className eq 'CRM_Contact_Form_Contact'} + + {if $className eq 'CRM_Contact_Form_Contact'} {ts}On Hold?{/ts} {help id="id-onhold" file="CRM/Contact/Form/Contact.hlp"} {ts}Bulk Mailings?{/ts} {help id="id-bulkmail" file="CRM/Contact/Form/Contact.hlp"} {ts}Primary?{/ts} - {/if} - + {/if} + {/if} - {$form.email.$blockId.email.html|crmAddClass:email} {$form.email.$blockId.location_type_id.html} + {$form.email.$blockId.email.html|crmAddClass:email} {$form.email.$blockId.location_type_id.html}
-{if $className eq 'CRM_Contact_Form_Contact'} - - -{/if} - - {$form.email.$blockId.on_hold.html} - {if $multipleBulk} - {$form.email.$blockId.is_bulkmail.html} - {else} - {$form.email.$blockId.is_bulkmail.1.html} - {/if} - {$form.email.$blockId.is_primary.1.html} - {if $blockId gt 1} - {ts}delete{/ts} + {if $className eq 'CRM_Contact_Form_Contact'} + {/if} + + {$form.email.$blockId.on_hold.html} + {if $multipleBulk} + {$form.email.$blockId.is_bulkmail.html} + {else} + {$form.email.$blockId.is_bulkmail.1.html} + {/if} + + {$form.email.$blockId.is_primary.1.html} + + {if $blockId gt 1} + + {ts}delete{/ts} + + {/if} diff --git a/templates/CRM/Contact/Form/Inline/Email.tpl b/templates/CRM/Contact/Form/Inline/Email.tpl index be0767213e28..ccbfd1d54a0a 100644 --- a/templates/CRM/Contact/Form/Inline/Email.tpl +++ b/templates/CRM/Contact/Form/Inline/Email.tpl @@ -26,50 +26,52 @@ {* This file provides the template for inline editing of emails *} {$form.oplock_ts.html} - - - - - + + + + + + + + + + {section name='i' start=1 loop=$totalBlocks} + {assign var='blockId' value=$smarty.section.i.index} + + + + {if $multipleBulk} + + {else} + + {/if} + + - - - - - {section name='i' start=1 loop=$totalBlocks} - {assign var='blockId' value=$smarty.section.i.index} - - - - {if $multipleBulk} - - {else} - - {/if} - - - - {/section} + {/section}
-
- {include file="CRM/common/formButtons.tpl"} -
-
{ts}Email{/ts}  +
+
+ {include file="CRM/common/formButtons.tpl"} +
+
{ts}Email{/ts}  {if $actualBlockCount lt 5 } - {ts}add{/ts} + + {ts}add{/ts} + {/if} + {ts}On Hold?{/ts}{ts}Bulk Mailings?{/ts}{ts}Primary?{/ts} 
{$form.email.$blockId.email.html|crmAddClass:email} {$form.email.$blockId.location_type_id.html}{$form.email.$blockId.on_hold.html}{$form.email.$blockId.is_bulkmail.html} + {if $blockId gt 1} + + {/if} {ts}On Hold?{/ts}{ts}Bulk Mailings?{/ts}{ts}Primary?{/ts} 
{$form.email.$blockId.email.html|crmAddClass:email} {$form.email.$blockId.location_type_id.html} - {$form.email.$blockId.on_hold.html}{$form.email.$blockId.is_bulkmail.html} - {if $blockId gt 1} - - {/if} -
{literal} - + {/literal}