File size: 1.52Kb
<?php
/**
* SocialEngine
*
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: AddPhrase.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_Language_AddPhrase extends Engine_Form
{
public function init()
{
$this->setTitle('Add Phrase')
//->setDescription('')
->setAttrib('class', 'global_form_popup');
$this->addElement('Text', 'phrase', array(
'label' => 'Type your new phrase below:',
'allowEmpty' => false,
'required' => true,
));
// Init submit
$this->addElement('Button', 'submit', array(
'label' => 'Add',
'type' => 'submit',
'ignore'=>true,
'decorators' => array(
'ViewHelper',
),
));
$this->addElement('Cancel', 'cancel', array(
'prependText' => ' or ',
'link' => true,
'label' => 'cancel',
'onclick' => 'parent.Smoothbox.close();',
'decorators' => array(
'ViewHelper'
)
));
$this->addDisplayGroup(array(
'submit',
'cancel'
), 'buttons', array(
'decorators' => array(
'FormElements'
)
));
$this->addDisplayGroup(array('submit', 'cancel'), 'buttons');
$button_group = $this->getDisplayGroup('buttons');
}
}