File size: 1.34Kb
<?php
/**
* SocialEngine
*
* @category Application_Extensions
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: Rename.php 9747 2012-07-26 02:08:08Z john $
* @author John
*/
/**
* @category Application_Extensions
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
*/
class Core_Form_Admin_File_Rename extends Engine_Form
{
public function init()
{
$this
->setTitle('Rename File')
;
$this->setAttrib('class', 'global_form_popup');
$this->addElement('Text', 'name', array(
'label' => 'Title',
'allowEmpty' => false,
'required' => true
));
$this->addElement('Button', 'submit', array(
'label' => 'Rename',
'type' => 'submit',
'ignore' => true,
'decorators' => array('ViewHelper')
));
$this->addElement('Cancel', 'cancel', array(
'label' => 'cancel',
'link' => true,
'prependText' => ' or ',
'href' => '',
'onClick'=> 'javascript:parent.Smoothbox.close();',
'decorators' => array(
'ViewHelper'
)
));
$this->addDisplayGroup(array('submit', 'cancel'), 'buttons');
$button_group = $this->getDisplayGroup('buttons');
}
}