Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function createComponentLoginForm(): Form {
- $form = new Form;
- $form->addText("name", "Jméno:")->setRequired("Musíte vyplnit jméno.");
- $form->addPassword("password", "Heslo:")->setRequired("Musíte vyplnit heslo.");
- $form->addSubmit("send", "Přihlásit se");
- $this->makeBootstrap4($form);
- $form->onSuccess[] = [$this, "loginFormSucceeded"];
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment