diff options
| author | michael pereira | 2011-03-16 17:28:45 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-16 17:28:45 +0100 |
| commit | 9f096b32294ae8efea2a4c289ee5bd5a338e2ed9 (patch) | |
| tree | 1e33da9eafeaddb960c0a8f605d43aee533049dd /application/modules/dev/forms/BootmenuEntriesAdd.php | |
| parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
| download | pbs2-9f096b32294ae8efea2a4c289ee5bd5a338e2ed9.tar.gz pbs2-9f096b32294ae8efea2a4c289ee5bd5a338e2ed9.tar.xz pbs2-9f096b32294ae8efea2a4c289ee5bd5a338e2ed9.zip | |
KCL jetzt auf 175 zeichen begrentzt
Diffstat (limited to 'application/modules/dev/forms/BootmenuEntriesAdd.php')
| -rw-r--r-- | application/modules/dev/forms/BootmenuEntriesAdd.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/application/modules/dev/forms/BootmenuEntriesAdd.php b/application/modules/dev/forms/BootmenuEntriesAdd.php index e849e2d..297a982 100644 --- a/application/modules/dev/forms/BootmenuEntriesAdd.php +++ b/application/modules/dev/forms/BootmenuEntriesAdd.php @@ -78,17 +78,21 @@ class dev_Form_BootmenuEntriesAdd 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 )); $defaultconfigid = $this->bootoslist[$_POST['bootosID']]->getConfigID(); |
