]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/client_job_status.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / client_job_status.tpl
index 28b0024ad380c264bbf97f7fb843577f4f5601f5..4a5434e528aba2eb9ff9f2a5f73311d666ac308d 100644 (file)
@@ -1,40 +1,59 @@
 <br/>
  <div class='titlediv'>
   <h1 class='newstitle'> 
-       Running job <TMPL_VAR JobName> on <TMPL_VAR Client>
+       __Running job__ <TMPL_VAR JobName> __on__ <TMPL_VAR Client>
   </h1>
  </div>
  <div class='bodydiv'>
 
 <table>
  <tr>
-  <td> <b> JobName: </b> <td> <td> <TMPL_VAR jobname> (<TMPL_VAR jobid>) <td> 
+  <td> <b> __Job Name:__ </b> </td> <td> <TMPL_VAR jobname> (<TMPL_VAR jobid>) <td> 
  </tr>
  <tr>
-  <td> <b> Processing file: </b> <td> <td> <TMPL_VAR "processing file"> </td>
+  <td> <b> __Processing file:__ </b> </td> <td> <TMPL_VAR "processing file"> </td>
  </tr>
  <tr>
-  <td> <b> Speed: </b> <td> <td> <TMPL_VAR "bytes/sec"> B/s</td>
+  <td> <b> __Speed:__ </b> </td> <td> <TMPL_VAR "bytes/sec"> B/s</td>
  </tr>
  <tr>
-  <td> <b> Files Examined: </b> <td> <td> <TMPL_VAR "files examined"></td>
+  <td> <b> __Files Examined:__ </b> </td> <td> <TMPL_VAR "files examined"></td>
  </tr>
  <tr>
-  <td> <b> Bytes: </b> <td> <td> <TMPL_VAR bytes></td>
+  <td> <b> __Files Backuped:__ </b> </td> <td> <TMPL_VAR files></td>
  </tr>
+ <tr>
+  <td> <b> __Bytes:__ </b> </td> <td> <TMPL_VAR bytes></td>
+ </tr>
+<TMPL_IF last_jobbytes>
+ <tr>
+  <td> <b> __Bytes done__ </b> </td><td> <div id='progressb'><td>
+ </tr>
+</TMPL_IF>
+<TMPL_IF last_jobfiles>
+ <tr>
+  <td> <b> __Files done__ </b> </td><td> <div id='progressf'><td>
+ </tr>
+</TMPL_IF>
 </table>
 <form name='form1' action='?' method='GET'>
 <button type="submit" class="bp" name='action' value='dsp_cur_job' 
-> <img src='/bweb/update.png' title='refresh' alt=''>Refresh</button>
+> <img src='/bweb/update.png' title='__Refresh__' alt=''>__Refresh__</button>
 <input type='hidden' name='client' value='<TMPL_VAR Client>'>
 <input type='hidden' name='jobid' value='<TMPL_VAR JobId>'>
 <button type="submit" class="bp" name='action' value='cancel_job'
-       onclick="return confirm('Do you want to cancel this job ?')"
-        title='Cancel job'> <img src='/bweb/cancel.png' alt=''>Cancel</button>
+       onclick="return confirm('__Do you want to cancel this job?__')"
+        title='__Cancel job__'> <img src='/bweb/cancel.png' alt=''>__Cancel__</button>
 </form>
  </div>
 
 <script type="text/javascript" language="JavaScript">
+<TMPL_IF last_jobfiles>
+  percent_finish(<TMPL_VAR jobfiles>*100/<TMPL_VAR last_jobfiles>, <TMPL_VAR corr_jobfiles>, document.getElementById('progressf'));
+</TMPL_IF>
+<TMPL_IF last_jobbytes>
+  percent_finish(<TMPL_VAR jobbytes>*100/<TMPL_VAR last_jobbytes>, <TMPL_VAR corr_jobbytes>, document.getElementById('progressb'));
+</TMPL_IF>
   bweb_add_refresh();
 </script>