From 583ccfa017f2a57776d70cf1b80a7dbb1228124c Mon Sep 17 00:00:00 2001 From: michael pereira Date: Thu, 21 Apr 2011 14:03:56 +0200 Subject: updates raus --- application/modules/user/forms/Bootiso.php | 13 ++++++++++++- application/modules/user/forms/Preboot.php | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) (limited to 'application/modules/user/forms') diff --git a/application/modules/user/forms/Bootiso.php b/application/modules/user/forms/Bootiso.php index 6ec9eb7..af474b5 100644 --- a/application/modules/user/forms/Bootiso.php +++ b/application/modules/user/forms/Bootiso.php @@ -50,6 +50,17 @@ class user_Form_Bootiso extends Zend_Form 'label' => 'Title:', )); + $this->addElement('textarea', 'description', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'rows' => 5, + 'cols' => 50, + 'label' => 'Description:', + )); + $prebootfield = $this->createElement('select','prebootID'); $prebootfield->setLabel('Preboot:'); $prebootfield->setAttrib('readOnly', $meta); @@ -77,7 +88,7 @@ class user_Form_Bootiso extends Zend_Form 'readOnly' => $meta, 'value' => $serial )); - + $date = new DateTime(); $date->add(new DateInterval('P1Y')); $this->addElement('text', 'expires', array( diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index 0b69c12..634b2b7 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -41,14 +41,24 @@ class user_Form_Preboot extends Zend_Form 'required' => true, 'label' => 'Title:', )); + + $this->addElement('textarea', 'description', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'rows' => 5, + 'cols' => 50, + 'label' => 'Description:', + )); - $this->addElement('file', 'prebootfile', array( + $this->addElement('file', 'preboot', array( 'required' => true, 'readOnly' => $meta, 'label' => 'Preboot:', )); - if($this->action == "createpreboot") $label = "Create Preboot"; else -- cgit v1.2.3-55-g7522