Always show search box

This commit is contained in:
Jamie Cameron
2008-11-19 18:47:06 +00:00
parent 8764f9f6b3
commit 4553bfa125
3 changed files with 12 additions and 6 deletions

View File

@@ -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.

View File

@@ -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) {

View File

@@ -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.