have image admin controls block use microhtml consistently

This commit is contained in:
Shish
2024-01-19 18:57:02 +00:00
parent 2d6a318a3b
commit dbb8bb8280
20 changed files with 60 additions and 44 deletions

View File

@ -66,11 +66,11 @@ class ReplaceFileTheme extends Themelet
/**
* Display link to replace the image
*/
public function get_replace_html(int $image_id): string
public function get_replace_html(int $image_id): \MicroHTML\HTMLElement
{
$form = SHM_FORM("replace/$image_id", "GET");
$form->appendChild(INPUT(["type" => 'submit', "value" => 'Replace']));
return (string)$form;
return $form;
}
protected function get_accept(): string