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