From 070d04503da2bfdb616c30b722471031ab5368e4 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 1 Nov 2020 10:39:06 +0000 Subject: [PATCH] note --- themes/rule34v2/user.theme.php | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/themes/rule34v2/user.theme.php b/themes/rule34v2/user.theme.php index e3e85bb3..003a8ecc 100644 --- a/themes/rule34v2/user.theme.php +++ b/themes/rule34v2/user.theme.php @@ -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)); + } }