From 28317cb90e3ba13aa5a946f24eabf027fa78cf6b Mon Sep 17 00:00:00 2001 From: michael pereira Date: Wed, 16 Mar 2011 13:01:41 +0100 Subject: Default KCL wird jetzt automatisch geupdated --- application/modules/dev/forms/BootmenuEntriesEdit.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'application/modules/dev/forms/BootmenuEntriesEdit.php') diff --git a/application/modules/dev/forms/BootmenuEntriesEdit.php b/application/modules/dev/forms/BootmenuEntriesEdit.php index 57aa053..394563e 100644 --- a/application/modules/dev/forms/BootmenuEntriesEdit.php +++ b/application/modules/dev/forms/BootmenuEntriesEdit.php @@ -55,6 +55,12 @@ class dev_Form_BootmenuEntriesEdit extends Zend_Form $bootosfield->setRegisterInArrayValidator(false); $this->addElement($bootosfield); + $kclactive = $this->createElement('checkbox','kclactive'); + #$kclactive->setAttrib('onChange', "document.getElementById('BootMenuEntryAdd').submit();"); + $kclactive->setLabel('Use default KCL:'); + $kclactive->setValue(true); + $this->addElement($kclactive); + $this->addElement('textarea', 'kcl', array( 'filters' => array('StringTrim'), 'validators' => array( @@ -64,9 +70,22 @@ class dev_Form_BootmenuEntriesEdit extends Zend_Form 'cols' => 50, 'rows' => 5, 'label' => 'KCL:', + 'readOnly' => true, 'value' => $this->bootoslist[$_POST['bootosID']]->getDefaultkcl() )); + $this->addElement('textarea', 'kclappend', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => false, + 'cols' => 50, + 'rows' => 5, + 'label' => 'KCL-Append:' + + )); + $defaultconfigid = $this->bootoslist[$_POST['bootosID']]->getConfigID(); $configfield = $this->createElement('select','configID'); $configfield->setLabel('Config:'); -- cgit v1.2.3-55-g7522