Merge pull request #3601 from atif-shaikh/CRM-14942
[civicrm-core.git] / templates / CRM / common / formButtons.tpl
index d0de0cf2cbf43901b80a283223e6a3250e569d2f..bba2c80bede8021929c4fa3e0324ac20a5ecaf5f 100644 (file)
@@ -27,8 +27,8 @@
 {* Loops through $form.buttons.html array and assigns separate spans with classes to allow theming
    by button and name. crmBtnType grabs type keyword from button name (e.g. 'upload', 'next', 'back', 'cancel') so
    types of buttons can be styled differently via css. *}
-
-{foreach from=$form.buttons item=button key=key name=btns}
+{crmRegion name='form-buttons'}
+  {foreach from=$form.buttons item=button key=key name=btns}
     {if $key|substring:0:4 EQ '_qf_'}
         {if $location}
           {assign var='html' value=$form.buttons.$key.html|crmReplace:id:"$key-$location"}
@@ -38,4 +38,5 @@
         {capture assign=validate}{$key|crmBtnValidate}{/capture}
         <span class="crm-button crm-button-type-{$key|crmBtnType} crm-button{$key}"{if $buttonStyle} style="{$buttonStyle}"{/if}>{$html|crmAddClass:$validate}</span>
     {/if}
-{/foreach}
+  {/foreach}
+{/crmRegion}