1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:25:56 +00:00

feed debugger: use hidden helpers; add button helpers

This commit is contained in:
Andrew Dolgov
2021-02-16 14:42:27 +03:00
parent 1f43d7916c
commit d7127cead3
2 changed files with 15 additions and 7 deletions

View File

@@ -1,6 +1,14 @@
<?php
namespace Controls;
function button_tag(string $value, string $type, $attributes = "") {
return "<button dojoType=\"dijit.form.Button\" $attributes type=\"$type\">".htmlspecialchars($value)."</button>";
}
function submit_tag(string $value, $attributes = "") {
return button_tag($value, "submit", "class=\"alt-primary\" $attributes");
}
function select_tag(string $name, $value, array $values, string $attributes = "", string $id = "") {
$dojo_type = strpos($attributes, "dojoType") === false ? "dojoType='fox.form.Select'" : "";