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