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