This commit is contained in:
Shish 2020-11-01 10:39:06 +00:00
parent 6789bd5fdd
commit 070d04503d

View file

@ -105,4 +105,41 @@ class CustomUserPageTheme extends UserPageTheme
$page->add_block(new NavBlock());
$page->add_block(new Block("Signup", (string)$html));
}
public function display_user_creator()
{
global $page;
$form = SHM_SIMPLE_FORM(
"user_admin/create_other",
TABLE(
["class"=>"form"],
TBODY(
TR(
TH("Name"),
TD(INPUT(["type"=>'text', "name"=>'name', "required"=>true]))
),
TR(
TH("Password"),
TD(INPUT(["type"=>'password', "name"=>'pass1', "required"=>true]))
),
TR(
TH(rawHTML("Repeat Password")),
TD(INPUT(["type"=>'password', "name"=>'pass2', "required"=>true]))
),
TR(
TH(rawHTML("Email")),
TD(INPUT(["type"=>'email', "name"=>'email']))
),
TR(
TD(["colspan"=>2], rawHTML("(Email is optional for admin-created accounts)")),
),
),
TFOOT(
TR(TD(["colspan"=>"2"], INPUT(["type"=>"submit", "value"=>"Create Account"])))
)
)
);
$page->add_block(new Block("Create User", (string)$form, "main", 75));
}
}