From 111b2df4a8576574b53919be008d573f3786e29e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 4 May 2015 12:31:00 +1200 Subject: [PATCH] CRM-16450 Custom data tab - fix indentation on tpl This is separate to the previous commit for readability --- .../CRM/Contact/Page/View/CustomData.tpl | 120 +++++++++--------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/templates/CRM/Contact/Page/View/CustomData.tpl b/templates/CRM/Contact/Page/View/CustomData.tpl index 89b730389a..6cd6b78bb5 100644 --- a/templates/CRM/Contact/Page/View/CustomData.tpl +++ b/templates/CRM/Contact/Page/View/CustomData.tpl @@ -26,67 +26,67 @@ {* template for custom data *} {assign var="customDataGroupName" value=$customDataGroup.name} {foreach from=$viewCustomData item=customGroupWrapper} -{foreach from=$customGroupWrapper item=customGroup key=customGroupId} -{assign var="customRegion" value='contact-custom-data-'|cat:$customGroup.name} -{crmRegion name=$customRegion} -{if $customGroup.help_pre} -
{$customGroup.help_pre}
-{/if} -{if $action eq 0 or $action eq 1 or $action eq 2 or $recordActivity} - {include file="CRM/Contact/Form/CustomData.tpl" mainEdit=$mainEditForm} -{/if} -{if $displayStyle eq 'tableOriented'} - {include file='CRM/Profile/Page/MultipleRecordFieldsListing.tpl' showListing=1 dontShowTitle=1 pageViewType='customDataView'} - {literal} - - {/literal} -{else} -{strip} - {if $action eq 16 or $action eq 4} {* Browse or View actions *} -
- {include file="CRM/Custom/Page/CustomDataView.tpl"} -
- {/if} -{/strip} + {foreach from=$customGroupWrapper item=customGroup key=customGroupId} + {assign var="customRegion" value='contact-custom-data-'|cat:$customGroup.name} + {crmRegion name=$customRegion} + {if $customGroup.help_pre} +
{$customGroup.help_pre}
+ {/if} + {if $action eq 0 or $action eq 1 or $action eq 2 or $recordActivity} + {include file="CRM/Contact/Form/CustomData.tpl" mainEdit=$mainEditForm} + {/if} + {if $displayStyle eq 'tableOriented'} + {include file='CRM/Profile/Page/MultipleRecordFieldsListing.tpl' showListing=1 dontShowTitle=1 pageViewType='customDataView'} + {literal} + + {/literal} + {else} + {strip} + {if $action eq 16 or $action eq 4} {* Browse or View actions *} +
+ {include file="CRM/Custom/Page/CustomDataView.tpl"} +
+ {/if} + {/strip} -{if $mainEditForm} - -{else} - + {else} + -{/if} -{/if} -{if $customGroup.help_post} -
{$customGroup.help_post}
-{/if} -{/crmRegion} -{/foreach} + {* hide and display the appropriate blocks as directed by the php code *} + on_load_init_blocks(showBlocks, hideBlocks); + + {/if} + {/if} + {if $customGroup.help_post} +
{$customGroup.help_post}
+ {/if} + {/crmRegion} + {/foreach} {/foreach} -- 2.25.1