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