]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/scheduled_job.tpl
ebl Choose the right pool&level when try to run a job
[bacula/bacula] / gui / bweb / tpl / scheduled_job.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> <TMPL_IF title><TMPL_VAR title><TMPL_ELSE>Next Jobs </TMPL_IF></h1>
4  </div>
5  <div class='bodydiv'>
6     <form name='form1' action='<TMPL_VAR cginame>?' method='GET'>
7      <table id='id<TMPL_VAR ID>'></table>
8      <button type="submit" class="bp" name='action' title='Run now' value='run_job_mod'>
9        <img src='/bweb/R.png' alt=''>  Run now </button>
10       <button type="submit" class="bp" name='action' title='Disable' value='disable_job'>
11        <img src='/bweb/inflag0.png' alt=''> Disable </button>
12      <input type='hidden' name='pool' value=''>
13      <input type='hidden' name='level' value=''>
14     </form>
15  </div>
16
17 <script type="text/javascript" language="JavaScript">
18
19 var header = new Array("Scheduled",
20                        "Level",
21                        "Type",
22                        "Priority", 
23                        "Name",
24                        "Volume",
25                        "Select");
26
27 var data = new Array();
28 var chkbox;
29
30 <TMPL_LOOP list>
31 chkbox = document.createElement('INPUT');
32 chkbox.type  = 'radio';
33 chkbox.name = 'job';
34 chkbox.value = '<TMPL_VAR name>';
35 chkbox.onclick = function() { 
36  document.form1.level.value = '<TMPL_VAR level>';
37  document.form1.pool.value = '<TMPL_VAR pool>';
38 } ;
39
40 data.push( new Array(
41 "<TMPL_VAR date>",    
42 "<TMPL_VAR level>",
43 "<TMPL_VAR type>",     
44 "<TMPL_VAR priority>",    
45 "<TMPL_VAR name>",      
46 "<TMPL_VAR volume>",
47 chkbox
48  )
49 );
50 </TMPL_LOOP>
51
52 nrsTable.setup(
53 {
54  table_name:     "id<TMPL_VAR ID>",
55  table_header: header,
56  table_data: data,
57  up_icon: up_icon,
58  down_icon: down_icon,
59  prev_icon: prev_icon,
60  next_icon: next_icon,
61  rew_icon:  rew_icon,
62  fwd_icon:  fwd_icon,
63 // natural_compare: true,
64  even_cell_color: even_cell_color,
65  odd_cell_color: odd_cell_color, 
66  header_color: header_color,
67  page_nav: true,
68  rows_per_page: rows_per_page,
69 // disable_sorting: new Array(6),
70  padding: 3
71 }
72 );
73 </script>