]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/scheduled_job.tpl
ebl Add link to Job view
[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        <button type="submit" onsubmit='document.form1.level.value="all"' class="bp" name='action' value='job' title='__view__ <TMPL_VAR Client> __jobs__'><img src='/bweb/zoom.png'>__View jobs__</button>
13 <TMPL_IF wiki_url>
14        <a id='wiki' href="<TMPL_VAR wiki_url>" title='__View doc__'><img src='/bweb/doc.png' alt='__View doc__'></a>__View doc__
15 </TMPL_IF>
16      <input type='hidden' name='pool' value=''>
17      <input type='hidden' name='level' value=''>
18      <input type='hidden' name='media' value=''>
19      <input type='hidden' name='client' value=''>
20     </form>
21  </div>
22
23 <script type="text/javascript" language="JavaScript">
24
25 var header = new Array("__Scheduled__",
26                        "__Level__",
27                        "__Type__",
28                        "__Priority__", 
29                        "__Name__",
30                        "__Volume__",
31                        "__Select__");
32
33 var data = new Array();
34 var chkbox;
35
36 var wiki_url <TMPL_IF wiki_url>='<TMPL_VAR wiki_url>'</TMPL_IF>;
37
38 <TMPL_LOOP list>
39 chkbox = document.createElement('INPUT');
40 chkbox.type  = 'radio';
41 chkbox.name = 'job';
42 chkbox.value = '<TMPL_VAR name>';
43 chkbox.onclick = function() { 
44  document.form1.level.value = '<TMPL_VAR level>';
45  document.form1.pool.value = '<TMPL_VAR pool>';
46  document.form1.media.value = '<TMPL_VAR volume>';
47  document.form1.client.value = '<TMPL_VAR client>';
48  if (wiki_url) {
49    document.getElementById('wiki').href=wiki_url + '<TMPL_VAR client>';
50  }
51 } ;
52
53 data.push( new Array(
54 "<TMPL_VAR date>",    
55 "<TMPL_VAR level>",
56 "<TMPL_VAR type>",     
57 "<TMPL_VAR priority>",    
58 "<TMPL_VAR name>",      
59 "<TMPL_VAR volume>",
60 chkbox
61  )
62 );
63 </TMPL_LOOP>
64
65 nrsTable.setup(
66 {
67  table_name:     "id<TMPL_VAR ID>",
68  table_header: header,
69  table_data: data,
70  up_icon: up_icon,
71  down_icon: down_icon,
72  prev_icon: prev_icon,
73  next_icon: next_icon,
74  rew_icon:  rew_icon,
75  fwd_icon:  fwd_icon,
76 // natural_compare: true,
77  even_cell_color: even_cell_color,
78  odd_cell_color: odd_cell_color, 
79  header_color: header_color,
80  page_nav: true,
81  rows_per_page: rows_per_page,
82 // disable_sorting: new Array(6),
83  padding: 3
84 }
85 );
86 </script>