X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=user_add.php;h=3c91905666e66f82ea380c2ed2132b37fea1fff9;hb=de518d7584b24c438ac562b3f1eca4e96568c85a;hp=a00528bf3b3ba0ac5def8063829c593162fd1998;hpb=36e4e3e4b457c992317212738d10693c269a4f6e;p=timetracker.git
diff --git a/user_add.php b/user_add.php
index a00528bf..3c919056 100644
--- a/user_add.php
+++ b/user_add.php
@@ -77,8 +77,8 @@ $form = new Form('userForm');
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','style'=>'width: 300px;','value'=>$cl_name));
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'login','style'=>'width: 300px;','value'=>$cl_login));
if (!$auth->isPasswordExternal()) {
- $form->addInput(array('type'=>'text','maxlength'=>'30','name'=>'pas1','aspassword'=>true,'value'=>$cl_password1));
- $form->addInput(array('type'=>'text','maxlength'=>'30','name'=>'pas2','aspassword'=>true,'value'=>$cl_password2));
+ $form->addInput(array('type'=>'password','maxlength'=>'30','name'=>'pas1','value'=>$cl_password1));
+ $form->addInput(array('type'=>'password','maxlength'=>'30','name'=>'pas2','value'=>$cl_password2));
}
$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'email','value'=>$cl_email));
@@ -97,8 +97,8 @@ $projects = ttTeamHelper::getActiveProjects($user->team_id);
// Define classes for the projects table.
class NameCellRenderer extends DefaultCellRenderer {
function render(&$table, $value, $row, $column, $selected = false) {
- $this->setOptions(array('width'=>200,'valign'=>'top'));
- $this->setValue('');
+ $this->setOptions(array('width'=>200));
+ $this->setValue('');
return $this->toString();
}
}
@@ -107,13 +107,13 @@ class RateCellRenderer extends DefaultCellRenderer {
global $assigned_projects;
$field = new FloatField('rate_'.$table->getValueAtName($row, 'id'));
$field->setFormName($table->getFormName());
- $field->setLocalization($GLOBALS['I18N']);
+ $field->localize($GLOBALS['I18N']);
$field->setSize(5);
$field->setFormat('.2');
foreach ($assigned_projects as $p) {
if ($p['id'] == $table->getValueAtName($row,'id')) $field->setValue($p['rate']);
}
- $this->setValue($field->toStringControl());
+ $this->setValue($field->getHtml());
return $this->toString();
}
}