mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
feed debugger: use hidden helpers; add button helpers
This commit is contained in:
@@ -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'" : "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user