From: Eric Bollengier Date: Mon, 19 Mar 2007 11:03:10 +0000 (+0000) Subject: ebl add a re-run option in display_job_zoom X-Git-Tag: Release-2.2.0~904 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84e6b0d5b8d81bca44df710571987777a687dc61;p=bacula%2Fbacula ebl add a re-run option in display_job_zoom git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4366 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/html/bweb.js b/gui/bweb/html/bweb.js index 72b50e8f0e..78b2dc9f5f 100644 --- a/gui/bweb/html/bweb.js +++ b/gui/bweb/html/bweb.js @@ -73,6 +73,12 @@ var joblevel = { 'B': 'Base level job' }; +var joblevelname = { + 'F': 'Full', + 'I': 'Incremental', + 'D': 'Differential', +}; + var refresh_time = 60000; diff --git a/gui/bweb/lang/es/tpl/display_job_zoom.tpl b/gui/bweb/lang/es/tpl/display_job_zoom.tpl index fd9f86bb6a..b314ea95f0 100644 --- a/gui/bweb/lang/es/tpl/display_job_zoom.tpl +++ b/gui/bweb/lang/es/tpl/display_job_zoom.tpl @@ -51,7 +51,7 @@ - + +--> + +
+ + + + + + + +
+ diff --git a/gui/bweb/lang/es/tpl/run_job_mod.tpl b/gui/bweb/lang/es/tpl/run_job_mod.tpl index 02291222cb..b38c21bbc6 100644 --- a/gui/bweb/lang/es/tpl/run_job_mod.tpl +++ b/gui/bweb/lang/es/tpl/run_job_mod.tpl @@ -124,7 +124,7 @@ } - + document.getElementById('level_').selected=true; ok=1; diff --git a/gui/bweb/lang/fr/tpl/display_job_zoom.tpl b/gui/bweb/lang/fr/tpl/display_job_zoom.tpl index 1a21dd59ca..9259ecdb6a 100644 --- a/gui/bweb/lang/fr/tpl/display_job_zoom.tpl +++ b/gui/bweb/lang/fr/tpl/display_job_zoom.tpl @@ -59,12 +59,26 @@ --> + +
+ + + + + + + +
+ diff --git a/gui/bweb/lang/fr/tpl/run_job_mod.tpl b/gui/bweb/lang/fr/tpl/run_job_mod.tpl index 4bf8ea2703..dcb0a14763 100644 --- a/gui/bweb/lang/fr/tpl/run_job_mod.tpl +++ b/gui/bweb/lang/fr/tpl/run_job_mod.tpl @@ -124,7 +124,7 @@ }
- + document.getElementById('level_').selected=true; ok=1; diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index 307194a327..e978fdcaac 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -3239,8 +3239,12 @@ sub run_job_mod my $job = CGI::param('job') || ''; + # we take informations from director, and we overwrite with user wish my $info = $b->send_cmd("show job=\"$job\""); my $attr = $self->run_parse_job($info); + + my $arg = $self->get_form('pool', 'level', 'client', 'fileset', 'storage'); + my %job_opt = (%$attr, %$arg); my $jobs = [ map {{ name => $_ }} $b->list_job() ]; @@ -3255,7 +3259,7 @@ sub run_job_mod clients => $clients, filesets => $filesets, storages => $storages, - %$attr, + %job_opt, }, "run_job_mod.tpl"); } diff --git a/gui/bweb/tpl/display_job_zoom.tpl b/gui/bweb/tpl/display_job_zoom.tpl index f8b29fe1b8..a9b30f386a 100644 --- a/gui/bweb/tpl/display_job_zoom.tpl +++ b/gui/bweb/tpl/display_job_zoom.tpl @@ -51,7 +51,7 @@ - + +--> + +
+ + + + + + + +
+ diff --git a/gui/bweb/tpl/run_job_mod.tpl b/gui/bweb/tpl/run_job_mod.tpl index 5d6740c935..6a48add66e 100644 --- a/gui/bweb/tpl/run_job_mod.tpl +++ b/gui/bweb/tpl/run_job_mod.tpl @@ -124,7 +124,7 @@ }
- + document.getElementById('level_').selected=true; ok=1;