This commit is contained in:
Shish
2020-01-26 23:12:48 +00:00
parent 50f3d04f0c
commit 4bd1d8b6ee
10 changed files with 100 additions and 83 deletions

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1);
use function MicroHTML\INPUT;
class AdminPageTheme extends Themelet
{
@ -50,10 +51,11 @@ class AdminPageTheme extends Themelet
}
$page->add_block(new Block("Misc Admin Tools", $html));
$html = make_form(make_link("admin/set_tag_case"), "POST");
$html .= "<input type='text' name='tag' placeholder='Enter tag with correct case' class='autocomplete_tags' autocomplete='off'>";
$html .= "<input type='submit' value='Set Tag Case'>";
$html .= "</form>\n";
$html = (string)SHM_SIMPLE_FORM(
make_link("admin/set_tag_case"),
INPUT(["type"=>'text', "name"=>'tag', "placeholder"=>'Enter tag with correct case', "class"=>'autocomplete_tags', "autocomplete"=>'off']),
SHM_SUBMIT('Set Tag Case'),
);
$page->add_block(new Block("Set Tag Case", $html));
}
}