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

add some print_checkbox/print_button calls; rename some plugin preference pane titles

This commit is contained in:
Andrew Dolgov
2017-02-10 14:57:25 +03:00
parent 51198e7e40
commit dc8bd8a640
5 changed files with 18 additions and 34 deletions

View File

@@ -134,8 +134,6 @@ class Af_Psql_Trgm extends Plugin {
if (!$similarity) $similarity = '0.75';
if (!$min_title_length) $min_title_length = '32';
$enable_globally_checked = $enable_globally ? "checked" : "";
print "<form dojoType=\"dijit.form.Form\">";
print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\">
@@ -174,15 +172,13 @@ class Af_Psql_Trgm extends Plugin {
placeholder=\"32\"
required=\"1\" name=\"min_title_length\" value=\"$min_title_length\"></td></tr>";
print "<tr><td width=\"40%\">" . __("Enable for all feeds:") . "</td>";
print "<td>
<input dojoType=\"dijit.form.CheckBox\"
$enable_globally_checked name=\"enable_globally\"></td></tr>";
print "<td>";
print_checkbox("enable_globally", $enable_globally);
print "</td></tr>";
print "</table>";
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">" .
__("Save") . "</button>";
print "<p>"; print_button("submit", __("Save"));
print "</form>";
$enabled_feeds = $this->host->get($this, "enabled_feeds");