<?php 
                        $this->assign('html', $this->_tpl_vars['form']['buttons'][$this->_tpl_vars['key']]['html']);
                        ?>
        <?php 
                    }
                    ?>
        <?php 
                    echo smarty_function_crmGetAttribute(array('html' => $this->_tpl_vars['html'], 'attr' => 'crm-icon', 'assign' => 'icon'), $this);
                    ?>

        <?php 
                    echo smarty_function_crmGetAttribute(array('html' => $this->_tpl_vars['html'], 'attr' => 'disabled', 'assign' => 'disabled'), $this);
                    ?>

        <span class="crm-button crm-button-type-<?php 
                    echo is_array($_tmp = $this->_tpl_vars['key']) ? $this->_run_mod_handler('crmBtnType', true, $_tmp) : smarty_modifier_crmBtnType($_tmp);
                    ?>
 crm-button<?php 
                    echo $this->_tpl_vars['key'];
                    if ($this->_tpl_vars['icon']) {
                        ?>
 crm-icon-button<?php 
                    }
                    if ($this->_tpl_vars['disabled']) {
                        ?>
 crm-button-disabled<?php 
                    }
                    ?>
"<?php 
                    if ($this->_tpl_vars['buttonStyle']) {
                        ?>
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/common/formButtons.tpl', 1, false),array('block', 'crmRegion', 'CRM/common/formButtons.tpl', 30, false),array('modifier', 'substring', 'CRM/common/formButtons.tpl', 32, false),array('modifier', 'crmReplace', 'CRM/common/formButtons.tpl', 34, false),array('modifier', 'crmBtnType', 'CRM/common/formButtons.tpl', 40, false),array('function', 'crmGetAttribute', 'CRM/common/formButtons.tpl', 38, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
<?php $this->_tag_stack[] = array('crmRegion', array('name' => 'form-buttons')); $_block_repeat=true;smarty_block_crmRegion($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
  <?php $_from = $this->_tpl_vars['form']['buttons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['btns'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['btns']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['button']):
        $this->_foreach['btns']['iteration']++;
?>
    <?php if (((is_array($_tmp=$this->_tpl_vars['key'])) ? $this->_run_mod_handler('substring', true, $_tmp, 0, 4) : smarty_modifier_substring($_tmp, 0, 4)) == '_qf_'): ?>
        <?php if ($this->_tpl_vars['location']): ?>
          <?php $this->assign('html', ((is_array($_tmp=$this->_tpl_vars['form']['buttons'][$this->_tpl_vars['key']]['html'])) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'id', ($this->_tpl_vars['key'])."-".($this->_tpl_vars['location'])) : smarty_modifier_crmReplace($_tmp, 'id', ($this->_tpl_vars['key'])."-".($this->_tpl_vars['location'])))); ?>
        <?php else: ?>
          <?php $this->assign('html', $this->_tpl_vars['form']['buttons'][$this->_tpl_vars['key']]['html']); ?>
        <?php endif; ?>
        <?php echo smarty_function_crmGetAttribute(array('html' => $this->_tpl_vars['html'],'attr' => 'crm-icon','assign' => 'icon'), $this);?>

        <?php echo smarty_function_crmGetAttribute(array('html' => $this->_tpl_vars['html'],'attr' => 'disabled','assign' => 'disabled'), $this);?>

        <span class="crm-button crm-button-type-<?php echo ((is_array($_tmp=$this->_tpl_vars['key'])) ? $this->_run_mod_handler('crmBtnType', true, $_tmp) : smarty_modifier_crmBtnType($_tmp)); ?>
 crm-button<?php echo $this->_tpl_vars['key']; ?>
<?php if ($this->_tpl_vars['icon']): ?> crm-icon-button<?php endif; ?><?php if ($this->_tpl_vars['disabled']): ?> crm-button-disabled<?php endif; ?>"<?php if ($this->_tpl_vars['buttonStyle']): ?> style="<?php echo $this->_tpl_vars['buttonStyle']; ?>
"<?php endif; ?>>
          <?php if ($this->_tpl_vars['icon']): ?><span class="crm-button-icon ui-icon-<?php echo $this->_tpl_vars['icon']; ?>
"> </span><?php endif; ?>
          <?php echo $this->_tpl_vars['html']; ?>

        </span>
    <?php endif; ?>
  <?php endforeach; endif; unset($_from); ?>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmRegion($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>