From 3df435742ef6d814f411ab9f4d405cc06eba1dab Mon Sep 17 00:00:00 2001 From: michael pereira Date: Wed, 20 Apr 2011 18:35:39 +0200 Subject: API + Fixes --- application/modules/user/forms/Preboot.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'application/modules/user/forms/Preboot.php') diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index 49faf0d..0b69c12 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -42,17 +42,13 @@ class user_Form_Preboot extends Zend_Form 'label' => 'Title:', )); - $this->addElement('text', 'path_preboot', array( - 'filters' => array('StringTrim'), - 'validators' => array( - array('StringLength', false, array(0, 240)), - ), + $this->addElement('file', 'prebootfile', array( 'required' => true, - 'size' => 50, 'readOnly' => $meta, - 'label' => 'Path to Preboot:', + 'label' => 'Preboot:', )); + if($this->action == "createpreboot") $label = "Create Preboot"; else -- cgit v1.2.3-55-g7522