]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job_zoom.tpl
ebl Add FileSet view action
[bacula/bacula] / gui / bweb / tpl / display_job_zoom.tpl
1  <div class='titlediv'>
2   <h1 class='newstitle'>Information about job</h1>
3  </div>
4  <div class="bodydiv">
5  <table id='id0'></table>
6  <table><td>
7  <form action='?'>
8   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
9   <label>
10   <input type="image" name='action' value='delete' title='delete this job'
11    src='/bweb/purge.png'> Delete
12   </label>
13  </form>
14  </td><td>
15  <form action='?'>
16   <TMPL_LOOP volumes>
17    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
18   </TMPL_LOOP>   
19   <label>
20   <input type="image" name='action' value='media' title='view media' 
21    src='/bweb/zoom.png'>View media
22   </label>
23  </form>
24  </td>
25  <td>
26  <form action='?'>
27   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
28   <label>
29   <input type="image" name='action' value='job' title='view <TMPL_VAR Client> jobs' src='/bweb/zoom.png'>View jobs
30   </label>
31  </form>
32  </td>
33  <td>
34  <form action='?'>
35   <input type='hidden' name='age' value='2678400'>
36   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
37   <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
38   <label>
39   <input type="image" name='action' value='graph' title='view trends'
40    src='/bweb/chart.png'> View stats
41   </label>
42  </form>
43  </td>
44  <td>
45  <form action='?'>
46   <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
47   <label>
48   <input type="image" name='action' value='fileset_view' title='view fileset'
49    src='/bweb/zoom.png'> View FileSet
50   </label>
51  </form>
52  </td>
53  </table>
54 </div>
55
56 <script type="text/javascript" language='JavaScript'>
57 var header = new Array("JobId",
58                        "Client",
59                        "Job Name", 
60                        "FileSet",
61                        "Level",
62                        "StartTime", 
63                        "Duration",
64                        "JobFiles",
65                        "JobBytes",
66                        "Pool",
67                        "Volume Name",
68                        "Status");
69
70 var data = new Array();
71
72 img = document.createElement("IMG");
73 img.src="/bweb/<TMPL_VAR JobStatus>.png";
74 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
75
76 data.push( new Array(
77 "<TMPL_VAR JobId>",
78 "<TMPL_VAR Client>",     
79 "<TMPL_VAR JobName>",    
80 "<TMPL_VAR FileSet>",    
81 "<TMPL_VAR Level>",      
82 "<TMPL_VAR StartTime>",
83 "<TMPL_VAR duration>",
84 "<TMPL_VAR JobFiles>",   
85 "<TMPL_VAR JobBytes>",
86 "<TMPL_VAR poolname>",
87 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
88 img
89  )
90 );
91
92 nrsTable.setup(
93 {
94  table_name:     "id0",
95  table_header: header,
96  table_data: data,
97  up_icon: up_icon,
98  down_icon: down_icon,
99  prev_icon: prev_icon,
100  next_icon: next_icon,
101  rew_icon:  rew_icon,
102  fwd_icon:  fwd_icon,
103 // natural_compare: true,
104  even_cell_color: even_cell_color,
105  odd_cell_color: odd_cell_color, 
106  header_color: header_color,
107  page_nav: true,
108  rows_per_page: rows_per_page,
109 // disable_sorting: new Array(6)
110  padding: 3
111 }
112 );
113
114 </script>