Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function createComponentSignInForm()
- {
- $form = new Form;
- $form->getElementPrototype()->name("login_form");
- $form->addText("username", "Jméno")
- ->setRequired("Nebylo zadáno jméno.");
- $form->addPassword("password", "Heslo")
- ->setRequired("Nebylo zadáno heslo.");
- $form->addCheckbox("remember", "Zapamatovat si přihlášení");
- $form->addSubmit("login", "Přihlásit se");
- $form->onSuccess[] = callback($this, "signInFormSubmitted");
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement