]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job_zoom.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[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 name="delete" action='bweb.pl?'>
8   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
9   <button type="submit" name='action' class="bp" value='delete' title='__delete this job__'
10  onclick="return confirm('__Do you want to delete this job from the catalog?__');">
11    <img src='/bweb/purge.png' alt=''>__Delete__</button>
12  </form>
13  </td><td>
14  <form name="media" action='bweb.pl?'>
15   <TMPL_LOOP volumes>
16    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
17   </TMPL_LOOP>   
18   <button type="submit" name='action' value='media' title='__View media__' class="bp">
19    <img src='/bweb/zoom.png'alt=''>__View media__</button>
20  </form>
21  </td>
22  <td>
23  <form name="job" action='bweb.pl?'>
24   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
25   <button type="submit" class="bp" name='action' value='job' title='__view__ <TMPL_VAR Client> __jobs__'><img src='/bweb/zoom.png'>__View jobs__</button>
26  </form>
27  </td>
28  <td>
29  <form name="graph" action='bweb.pl?'>
30   <input type='hidden' name='age' value='2678400'>
31   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
32   <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
33   <button type="submit" class="bp" name='action' value='graph' title='__View trends__'>
34    <img src='/bweb/chart.png' alt=''> __View stats__ </button>
35  </form>
36  </td>
37  <td>
38  <form name="fileset_view" action='bweb.pl?'>
39   <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
40   <button type="submit" class="bp" name='action' value='fileset_view' title='__View FileSet__'> 
41  <img src='/bweb/zoom.png' alt=''>__View FileSet__</button>
42  </form>
43  </td>
44  <td>
45  <form name="bfileview" action='bfileview.pl?'>
46   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
47   <input type='hidden' name='where' value='/'>
48   <button type="submit" class="bp" name='action' value='bfileview' 
49    title='__View file usage__' 
50    onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("__It could take long time, do you want to continue?__")} else { return 1; }'>
51    <img src='/bweb/colorscm.png' alt=''> __View file usage__ </button>
52  </form>
53  </td>
54 <TMPL_IF wiki_url>
55   <td>
56    <a href="<TMPL_VAR wiki_url><TMPL_VAR Client>" title='__View doc__'><img src='/bweb/doc.png' alt='__View doc__'></a>__View doc__
57  </td>
58 </TMPL_IF>
59  <td>
60  <form name="rerun" action='bweb.pl?' onsubmit="document.getElementById('rerun_level').value=joblevelname['<TMPL_VAR NAME=Level>']">
61   <input type='hidden' name='storage' value='<TMPL_VAR storage>'>
62   <input type='hidden' name='fileset' value='<TMPL_VAR fileset>'>
63   <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
64   <input type='hidden' name='client' value='<TMPL_VAR client>'>
65   <input type='hidden' id="rerun_level" name='level'>
66   <input type='hidden' name='job' value='<TMPL_VAR jobname>'>
67   <button type="submit" class="bp" name='action' value='run_job_mod' title='__run this job again__'>
68    <img src='/bweb/R.png'> __Run this job__ </button>
69  </form>
70  </td>
71 <TMPL_IF joberrors>
72  <td>
73     <a href="<TMPL_VAR thisurl>;error=1"
74          title="__View only errors__">
75     <img src='/bweb/doc.png' alt="__View errors__"></a> __View only errors__
76   </td>
77 </TMPL_IF>
78  </table>
79 </div>
80
81 <script type="text/javascript" language='JavaScript'>
82 var header = new Array("JobId",
83                        "__Client__",
84                        "__Job Name__", 
85                        "__FileSet__",
86                        "__Level__",
87                        "__StartTime__", 
88                        "__Duration__",
89                        "__JobFiles__",
90                        "__JobBytes__",
91                        "__Errors__",
92                        "__Pool__",
93                        "__Volume Name__",
94                        "__Status__");
95
96 var data = new Array();
97
98 img = document.createElement("IMG");
99 img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", 
100                          <TMPL_VAR joberrors>,
101                          '<TMPL_VAR jobtype>');
102 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
103
104 data.push( new Array(
105 "<TMPL_VAR JobId>",
106 "<TMPL_VAR Client>",     
107 "<TMPL_VAR JobName>",    
108 "<TMPL_VAR FileSet>",    
109 "<TMPL_VAR Level>",      
110 "<TMPL_VAR StartTime>",
111 "<TMPL_VAR duration>",
112 "<TMPL_VAR JobFiles>",   
113 human_size(<TMPL_VAR JobBytes>),
114 "<TMPL_VAR joberrors>",
115 "<TMPL_VAR poolname>",
116 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
117 img
118  )
119 );
120
121 nrsTable.setup(
122 {
123  table_name:     "id0",
124  table_header: header,
125  table_data: data,
126  up_icon: up_icon,
127  down_icon: down_icon,
128  prev_icon: prev_icon,
129  next_icon: next_icon,
130  rew_icon:  rew_icon,
131  fwd_icon:  fwd_icon,
132 // natural_compare: true,
133  even_cell_color: even_cell_color,
134  odd_cell_color: odd_cell_color, 
135  header_color: header_color,
136  page_nav: true,
137  rows_per_page: rows_per_page,
138 // disable_sorting: new Array(6)
139  padding: 3
140 }
141 );
142
143 </script>