Skip to content

Commit

Permalink
[tag edit] textarea for more tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Jan 1, 2024
1 parent 164e6df commit 20b72f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ext/tag_edit/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use MicroHTML\HTMLElement;

use function MicroHTML\{TR, TH, TD, emptyHTML, rawHTML, joinHTML, DIV, INPUT, A};
use function MicroHTML\{TR, TH, TD, emptyHTML, rawHTML, joinHTML, DIV, INPUT, A, TEXTAREA};

class TagEditTheme extends Themelet
{
Expand Down Expand Up @@ -57,14 +57,12 @@ public function get_tag_editor_html(Image $image): HTMLElement
return SHM_POST_INFO(
"Tags",
joinHTML(", ", $tag_links),
$user->can(Permissions::EDIT_IMAGE_TAG) ? INPUT([
$user->can(Permissions::EDIT_IMAGE_TAG) ? TEXTAREA([
"class" => "autocomplete_tags",
"type" => "text",
"name" => "tag_edit__tags",
"value" => $image->get_tag_list(),
"id" => "tag_editor",
"autocomplete" => "off"
]) : null,
], $image->get_tag_list()) : null,
link: Extension::is_enabled(TagHistoryInfo::KEY) ? make_link("tag_history/{$image->id}") : null,
);
}
Expand Down

0 comments on commit 20b72f5

Please sign in to comment.