protected function getStdEditControl($readOnly = false) { $control = new InputPasswordControl(null, $this->name); $control->setValue($this->value)->setMaxlength($this->maxLength)->setReadOnly($readOnly); if ($this->validation != '') { $control->addCssClass($this->validation); } return $control; }
/** * @throws \Exception */ protected function createControls() { $this->setPostback('DefaultMod', 'doReset', ['token' => $this->request->token]); $text = new HilfstextControl($this, 'hilfe'); $text->setText('USER_KENNWORT_FESTLEGEN'); $input = new InputPasswordControl(null, 'pw1'); $input->addCssClass('required'); $input2 = new InputPasswordControl(null, 'pw2'); $input2->addCssClass('required'); $edit = new EditControl($this, 'edt'); $edit->setMode(EditControl::MODE_VERTICAL)->addRow('Kennwort', $input)->addRow('Wiederholen', $input2); $submit = new ButtonControl($this, 'submit'); $submit->setButtonClass(ButtonControl::BUTTON_PRIMARY)->setCaption('Kennwort setzen')->setIsSubmit(true); }