From: Eric Bollengier Date: Sun, 25 Nov 2007 21:36:45 +0000 (+0000) Subject: ebl Add time slice selection for job overview X-Git-Tag: Release-3.0.0~2201 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae87ed909da8735986afd20c8a38b20ab31f4936;p=bacula%2Fbacula ebl Add time slice selection for job overview git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5988 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/cgi/bweb.pl b/gui/bweb/cgi/bweb.pl index 948788cf20..c869e7737c 100755 --- a/gui/bweb/cgi/bweb.pl +++ b/gui/bweb/cgi/bweb.pl @@ -457,9 +457,10 @@ if ($action eq 'begin') { # main display } elsif ($action eq 'overview') { $bweb->can_do('r_view_job'); print "
\n"; - my $fields = $bweb->get_form(qw/level filter age jobtype since + my $fields = $bweb->get_form(qw/level filter age jobtype since type db_client_groups qclient_groups/); # drop this to hide $fields->{action}='overview'; + $fields->{view_time_slice}=1; $bweb->display($fields, "display_form_job.tpl"); print ""; @@ -469,9 +470,10 @@ if ($action eq 'begin') { # main display } elsif ($action eq 'overview_zoom') { $bweb->can_do('r_view_job'); print "
+ + + + +
\n"; - my $fields = $bweb->get_form(qw/level filter age jobtype since + my $fields = $bweb->get_form(qw/level filter age jobtype since type db_client_groups qclient_groups/); # drop this to hide $fields->{action}='overview_zoom'; + $fields->{view_time_slice}=1; $bweb->display($fields, "display_form_job.tpl"); print ""; $bweb->display_overview_zoom(); diff --git a/gui/bweb/tpl/display_form_job.tpl b/gui/bweb/tpl/display_form_job.tpl index 8386539bf7..973348bd7b 100644 --- a/gui/bweb/tpl/display_form_job.tpl +++ b/gui/bweb/tpl/display_form_job.tpl @@ -47,14 +47,14 @@

Since

-

Age

- @@ -73,6 +73,18 @@
+

Time slice

+ +

Number of items

@@ -157,6 +169,10 @@ document.getElementById('age_').selected=true; + + document.getElementById('slice_').selected=true; + + document.getElementById('jobtype_').selected=true;