mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Always show search box
This commit is contained in:
@@ -32,3 +32,5 @@ Added a check for a valid module configuration, especially the cron jobs directo
|
||||
Added an access control option to prevent individual Webmin users from creating cron jobs that run more often than hourly.
|
||||
---- Changes since 1.420 ----
|
||||
Disable time and day lists when 'All' is selected, to indicate that they are un-usable.
|
||||
---- Changes since 1.440 ----
|
||||
The search form for jobs is always visible, even when there are not too many jobs to show.
|
||||
|
||||
@@ -196,13 +196,16 @@ if ($in{'search'}) {
|
||||
@rows;
|
||||
}
|
||||
|
||||
# Show search form
|
||||
print &ui_form_start("index.cgi");
|
||||
print "<b>$text{'index_search'}</b>\n";
|
||||
print &ui_textbox("search", $in{'search'}, 20);
|
||||
print &ui_submit($text{'index_ok'});
|
||||
print &ui_form_end();
|
||||
|
||||
# Check if we are over the display limit
|
||||
if ($max_jobs && @rows > $max_jobs && !$in{'search'}) {
|
||||
print &ui_form_start("index.cgi");
|
||||
print "<b>$text{'index_toomany'}</b>\n";
|
||||
print &ui_textbox("search", $in{'search'}, 20);
|
||||
print &ui_submit($text{'index_ok'});
|
||||
print &ui_form_end();
|
||||
print "<b>$text{'index_toomany2'}</b><p>\n";
|
||||
print &ui_links_row(\@crlinks);
|
||||
}
|
||||
elsif (@rows) {
|
||||
|
||||
@@ -21,7 +21,8 @@ index_delete=Delete Selected Jobs
|
||||
index_disable=Disable Selected Jobs
|
||||
index_enable=Enable Selected Jobs
|
||||
index_esearch=No jobs matched your search for $1.
|
||||
index_toomany=There are too many jobs to show. Find those matching :
|
||||
index_toomany2=There are too many jobs to show. Use the search form above to limit the list.
|
||||
index_search=Find Cron jobs matching
|
||||
index_ok=Search
|
||||
index_searchres=Cron jobs matching $1 ..
|
||||
index_reset=Reset search.
|
||||
|
||||
Reference in New Issue
Block a user