summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/BootmenuEntriesEdit.php
diff options
context:
space:
mode:
authormichael pereira2011-03-16 13:01:41 +0100
committermichael pereira2011-03-16 13:01:41 +0100
commit28317cb90e3ba13aa5a946f24eabf027fa78cf6b (patch)
tree0b4907b5ac8adc671b7c43b2e33fa9c0a2f7cf4c /application/modules/dev/forms/BootmenuEntriesEdit.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.tar.gz
pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.tar.xz
pbs2-28317cb90e3ba13aa5a946f24eabf027fa78cf6b.zip
Default KCL wird jetzt automatisch geupdated
Diffstat (limited to 'application/modules/dev/forms/BootmenuEntriesEdit.php')
-rw-r--r--application/modules/dev/forms/BootmenuEntriesEdit.php19
1 files changed, 19 insertions, 0 deletions
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:');