note
This commit is contained in:
parent
6789bd5fdd
commit
070d04503d
@ -105,4 +105,41 @@ class CustomUserPageTheme extends UserPageTheme
|
|||||||
$page->add_block(new NavBlock());
|
$page->add_block(new NavBlock());
|
||||||
$page->add_block(new Block("Signup", (string)$html));
|
$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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user