editing in progress
This commit is contained in:
parent
c744d88f23
commit
29c8570ade
8 changed files with 551 additions and 338 deletions
|
@ -3,7 +3,7 @@
|
|||
class Application_Form_EditHistoryFile extends Zend_Form
|
||||
{
|
||||
public function init() {
|
||||
|
||||
|
||||
/*
|
||||
$this->setDecorators(
|
||||
array(
|
||||
|
@ -11,12 +11,17 @@ class Application_Form_EditHistoryFile extends Zend_Form
|
|||
)
|
||||
);
|
||||
*/
|
||||
|
||||
|
||||
$this->setMethod('post');
|
||||
|
||||
|
||||
$this->addElement('hidden', 'file_id');
|
||||
|
||||
|
||||
|
||||
$file_id = new Zend_Form_Element_Hidden('his_file_id');
|
||||
$file_id->setValidators(array(
|
||||
new Zend_Validate_Int()
|
||||
));
|
||||
$this->addElement($file_id);
|
||||
|
||||
|
||||
/* Title form element */
|
||||
$title = new Zend_Form_Element_Text('his_file_title');
|
||||
$title->setLabel(_('Title:'));
|
||||
|
@ -24,7 +29,7 @@ class Application_Form_EditHistoryFile extends Zend_Form
|
|||
$title->addFilter('StringTrim');
|
||||
//$title->setDecorators(array('viewHelper'));
|
||||
$this->addElement($title);
|
||||
|
||||
|
||||
/* Creator form element */
|
||||
$creator = new Zend_Form_Element_Text('his_file_creator');
|
||||
$creator->setLabel(_('Creator:'));
|
||||
|
@ -32,7 +37,7 @@ class Application_Form_EditHistoryFile extends Zend_Form
|
|||
$creator->addFilter('StringTrim');
|
||||
//$creator->setDecorators(array('viewHelper'));
|
||||
$this->addElement($creator);
|
||||
|
||||
|
||||
/* Composer form element */
|
||||
$composer = new Zend_Form_Element_Text('his_file_composer');
|
||||
$composer->setLabel(_('Composer:'));
|
||||
|
@ -40,7 +45,7 @@ class Application_Form_EditHistoryFile extends Zend_Form
|
|||
$composer->addFilter('StringTrim');
|
||||
//$composer->setDecorators(array('viewHelper'));
|
||||
$this->addElement($composer);
|
||||
|
||||
|
||||
/* Copyright form element */
|
||||
$copyright = new Zend_Form_Element_Text('his_file_copyright');
|
||||
$copyright->setLabel(_('Copyright:'));
|
||||
|
@ -48,33 +53,33 @@ class Application_Form_EditHistoryFile extends Zend_Form
|
|||
$copyright->addFilter('StringTrim');
|
||||
//$copyright->setDecorators(array('viewHelper'));
|
||||
$this->addElement($copyright);
|
||||
|
||||
|
||||
// Add the submit button
|
||||
$this->addElement('button', 'his_file_save', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn',
|
||||
'class' => 'btn his_file_save',
|
||||
'label' => _('Save'),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
// Add the cancel button
|
||||
$this->addElement('button', 'his_file_cancel', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn',
|
||||
'class' => 'btn his_file_cancel',
|
||||
'label' => _('Cancel'),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
$this->addDisplayGroup(
|
||||
array(
|
||||
'his_file_save',
|
||||
'his_file_save',
|
||||
'his_file_cancel'
|
||||
),
|
||||
'submitButtons',
|
||||
),
|
||||
'submitButtons',
|
||||
array(
|
||||
'decorators' => array(
|
||||
'FormElements',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue