File size: 1.25Kb
<?php
/**
* SocialEngine
*
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: Edit.php 9747 2012-07-26 02:08:08Z john $
* @author John
*/
/**
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
*/
class Core_Form_Admin_Managetags_Edit extends Engine_Form {
public function init() {
$this->setMethod('post');
$this->addElement('Text', 'text', array(
'allowEmpty' => false,
'required' => true,
));
$this->addElement('Button', 'submit', array(
'label' => 'Edit',
'type' => 'submit',
'ignore' => true,
'decorators' => array('ViewHelper')
));
$this->addElement('Cancel', 'cancel', array(
'label' => 'Cancel',
'link' => true,
'prependText' => ' or ',
'href' => Zend_Controller_Front::getInstance()->getRouter()->assemble(array('action' => 'index')),
'onClick' => 'javascript:parent.Smoothbox.close();',
'decorators' => array(
'ViewHelper'
)
));
$this->addDisplayGroup(array('submit', 'cancel'), 'buttons');
}
}