Merge pull request #3601 from atif-shaikh/CRM-14942
[civicrm-core.git] / templates / CRM / common / formButtons.tpl
index a0e864ee530e6f1fb55d7083c88a3222745d2a9b..bba2c80bede8021929c4fa3e0324ac20a5ecaf5f 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -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}