diff options
| author | michael pereira | 2011-03-16 13:01:41 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-16 13:01:41 +0100 |
| commit | 28317cb90e3ba13aa5a946f24eabf027fa78cf6b (patch) | |
| tree | 0b4907b5ac8adc671b7c43b2e33fa9c0a2f7cf4c /application/modules/dev/forms/BootmenuEntriesAdd.php | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.tar.gz pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.tar.xz pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.zip | |
Default KCL wird jetzt automatisch geupdated
Diffstat (limited to 'application/modules/dev/forms/BootmenuEntriesAdd.php')
| -rw-r--r-- | application/modules/dev/forms/BootmenuEntriesAdd.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/application/modules/dev/forms/BootmenuEntriesAdd.php b/application/modules/dev/forms/BootmenuEntriesAdd.php index 2e1b677..ef6e909 100644 --- a/application/modules/dev/forms/BootmenuEntriesAdd.php +++ b/application/modules/dev/forms/BootmenuEntriesAdd.php @@ -54,6 +54,12 @@ class dev_Form_BootmenuEntriesAdd extends Zend_Form $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( @@ -63,10 +69,25 @@ class dev_Form_BootmenuEntriesAdd 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:'); |
