]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/scheduled_job.tpl
ebl fix add_media feature
[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      <input type='hidden' name='media' value=''>
15     </form>
16  </div>
17
18 <script type="text/javascript" language="JavaScript">
19
20 var header = new Array("Scheduled",
21                        "Level",
22                        "Type",
23                        "Priority", 
24                        "Name",
25                        "Volume",
26                        "Select");
27
28 var data = new Array();
29 var chkbox;
30
31 <TMPL_LOOP list>
32 chkbox = document.createElement('INPUT');
33 chkbox.type  = 'radio';
34 chkbox.name = 'job';
35 chkbox.value = '<TMPL_VAR name>';
36 chkbox.onclick = function() { 
37  document.form1.level.value = '<TMPL_VAR level>';
38  document.form1.pool.value = '<TMPL_VAR pool>';
39  document.form1.media.value = '<TMPL_VAR volume>';
40 } ;
41
42 data.push( new Array(
43 "<TMPL_VAR date>",    
44 "<TMPL_VAR level>",
45 "<TMPL_VAR type>",     
46 "<TMPL_VAR priority>",    
47 "<TMPL_VAR name>",      
48 "<TMPL_VAR volume>",
49 chkbox
50  )
51 );
52 </TMPL_LOOP>
53
54 nrsTable.setup(
55 {
56  table_name:     "id<TMPL_VAR ID>",
57  table_header: header,
58  table_data: data,
59  up_icon: up_icon,
60  down_icon: down_icon,
61  prev_icon: prev_icon,
62  next_icon: next_icon,
63  rew_icon:  rew_icon,
64  fwd_icon:  fwd_icon,
65 // natural_compare: true,
66  even_cell_color: even_cell_color,
67  odd_cell_color: odd_cell_color, 
68  header_color: header_color,
69  page_nav: true,
70  rows_per_page: rows_per_page,
71 // disable_sorting: new Array(6),
72  padding: 3
73 }
74 );
75 </script>