CRM-16450 add pre & post custom group text & region to data tab
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 4 May 2015 00:28:36 +0000 (12:28 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 17 May 2015 22:46:56 +0000 (10:46 +1200)
templates/CRM/Contact/Page/View/CustomData.tpl

index 5e93e8e5facbabe04f26755781e5762a6150032d..89b730389a1ecce6096ebae0394a9c9ec5e372f2 100644 (file)
  +--------------------------------------------------------------------+
 *}
 {* 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}
+  <div class="messages help">{$customGroup.help_pre}</div>
+{/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}
@@ -76,3 +84,9 @@
   </script>
 {/if}
 {/if}
+{if $customGroup.help_post}
+  <div class="messages help">{$customGroup.help_post}</div>
+{/if}
+{/crmRegion}
+{/foreach}
+{/foreach}