diff options
| author | michael pereira | 2011-04-18 02:32:00 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-18 02:32:00 +0200 |
| commit | 12692bde37c7793aa9a71433b9ffc575139c9ee1 (patch) | |
| tree | d458a5a09d52f5cb5be1f38be7410b9d5287fc77 /application/modules/user/forms | |
| parent | Pbs_Graph bei Minuswerten wird nichts eingefärbt (diff) | |
| download | pbs2-12692bde37c7793aa9a71433b9ffc575139c9ee1.tar.gz pbs2-12692bde37c7793aa9a71433b9ffc575139c9ee1.tar.xz pbs2-12692bde37c7793aa9a71433b9ffc575139c9ee1.zip | |
Ticket 214 API-Daten zu Bootos hinzugefügt
Diffstat (limited to 'application/modules/user/forms')
| -rw-r--r-- | application/modules/user/forms/Bootos.php | 77 |
1 files changed, 63 insertions, 14 deletions
diff --git a/application/modules/user/forms/Bootos.php b/application/modules/user/forms/Bootos.php index c9669c7..964fbf3 100644 --- a/application/modules/user/forms/Bootos.php +++ b/application/modules/user/forms/Bootos.php @@ -52,19 +52,6 @@ class user_Form_Bootos extends Zend_Form 'cols' => 50, 'label' => 'Description:', )); - - $configfield = $this->createElement('select','configID'); - $configfield ->setLabel('Config:'); - $configfield->setAttrib('readOnly', $meta); - - if(count($this->configlist)>0){ - foreach($this->configlist as $config => $c){ - $configfield->addMultiOption($c->getID(), $c->getTitle()); - } - } - - $configfield->setRegisterInArrayValidator(false); - $this->addElement($configfield); $this->addElement('text', 'path_init', array( 'filters' => array('StringTrim'), @@ -88,6 +75,17 @@ class user_Form_Bootos extends Zend_Form 'label' => 'Kernel-Path:', )); + $this->addElement('text', 'path_config', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 250)), + ), + 'required' => true, + 'size' => 50, + 'readOnly' => $meta, + 'label' => 'Config-Path:', + )); + $this->addElement('textarea', 'defaultkcl', array( 'filters' => array('StringTrim'), 'validators' => array( @@ -100,6 +98,56 @@ class user_Form_Bootos extends Zend_Form 'label' => 'Default-KCL:', )); + $this->addElement('text', 'source', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'readOnly' => $meta, + 'label' => 'Source:', + )); + + $this->addElement('text', 'distro', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'readOnly' => $meta, + 'label' => 'Distro:', + )); + + $this->addElement('text', 'distroversion', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'readOnly' => $meta, + 'label' => 'Distroversion:', + )); + + $this->addElement('text', 'shortname', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'readOnly' => $meta, + 'label' => 'Shortname:', + )); + + $this->addElement('text', 'share', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 140)), + ), + 'required' => false, + 'readOnly' => $meta, + 'label' => 'Share:', + )); + $date = new DateTime(); $date->add(new DateInterval('P1Y')); $this->addElement('text', 'expires', array( @@ -115,7 +163,8 @@ class user_Form_Bootos extends Zend_Form $publicfield = $this->createElement('select','public'); $publicfield->setLabel('Public:'); - $publicfield->addMultiOption(0, '0. Eigene Gruppe'); + $publicfield->addMultiOption(-1, 'X. Not Visible'); + $publicfield->addMultiOption(0, '0. Own Group'); $publicfield->setAttrib('readOnly', $meta); $publicfield->setAttrib('id', 'depth'); $publicfield->setAttrib('onchange', "$('#groups .v1').show();changeDepth();"); |
