summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/forms/BootmenuEntriesEdit.php
diff options
context:
space:
mode:
authorSimon2011-03-16 17:40:15 +0100
committerSimon2011-03-16 17:40:15 +0100
commitbfb12ad29c60d15a27eb443595e1de99c66ce178 (patch)
treec48f8148ef7e61cbfc5e364c3e813cd6319babdf /application/modules/dev/forms/BootmenuEntriesEdit.php
parentClient Controller fertig (diff)
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-bfb12ad29c60d15a27eb443595e1de99c66ce178.tar.gz
pbs2-bfb12ad29c60d15a27eb443595e1de99c66ce178.tar.xz
pbs2-bfb12ad29c60d15a27eb443595e1de99c66ce178.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/dev/forms/BootmenuEntriesEdit.php')
-rw-r--r--application/modules/dev/forms/BootmenuEntriesEdit.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/application/modules/dev/forms/BootmenuEntriesEdit.php b/application/modules/dev/forms/BootmenuEntriesEdit.php
index 8c1c41f..f6fc3ea 100644
--- a/application/modules/dev/forms/BootmenuEntriesEdit.php
+++ b/application/modules/dev/forms/BootmenuEntriesEdit.php
@@ -82,15 +82,21 @@ class dev_Form_BootmenuEntriesEdit extends Zend_Form
));
}
+ if($_POST['kclactive'])
+ $kcllength = 175 - strlen($this->bootoslist[$_POST['bootosID']]->getDefaultkcl());
+ else
+ $kcllength = 175;
+
$this->addElement('textarea', 'kclappend', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 50)),
+ array('StringLength', false, array(0, $kcllength)),
),
'required' => false,
'cols' => 50,
'rows' => 5,
- 'label' => 'KCL-Append:'
+ 'label' => 'KCL-Append:',
+ 'description' => 'Chars left: ' . $kcllength
));