X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61efd9d023ae34c1290ef2e1ae25829c509caaee..785d404c84c153bda7d45d3aedfefa81985703b3:/WEB-INF/lib/form/Form.class.php diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index f8a32ec5..1beb590c 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -59,12 +59,16 @@ class Form { import('form.TextField'); $el = new TextField($arguments['name']); $el->setMaxLength(@$arguments['maxlength']); - if (isset($arguments['aspassword'])) $el->setAsPassword($arguments['aspassword']); + break; + + case 'password': + import('form.PasswordField'); + $el = new PasswordField($arguments['name']); + $el->setMaxLength(@$arguments['maxlength']); break; // TODO: refactoring ongoing down from here. -// aspassword - change this name to something better? Perhaps. -// Change $arguments to something better too (maybe). $args or $params? +// Change $arguments to something better (maybe). $args or $params? case "datefield": import('form.DateField'); $el = new DateField($arguments["name"]);