]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/display_job_zoom.tpl
ebl display config_file
[bacula/bacula] / gui / bweb / tpl / display_job_zoom.tpl
index 0e11d747f8af8afd9bfffebde9935e86affccc28..8203ef13ca91b23485117600de74fa5762a9800a 100644 (file)
@@ -4,15 +4,16 @@
  <div class="bodydiv">
  <table id='id0'></table>
  <table><td>
- <form action='?'>
+ <form action='bweb.pl?'>
   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
   <label>
   <input type="image" name='action' value='delete' title='delete this job'
+ onclick="return confirm('Do you want to delete this job from the catalog ?');"
    src='/bweb/purge.png'> Delete
   </label>
  </form>
  </td><td>
- <form action='?'>
+ <form action='bweb.pl?'>
   <TMPL_LOOP volumes>
    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
   </TMPL_LOOP>   
@@ -23,7 +24,7 @@
  </form>
  </td>
  <td>
- <form action='?'>
+ <form action='bweb.pl?'>
   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
   <label>
   <input type="image" name='action' value='job' title='view <TMPL_VAR Client> jobs' src='/bweb/zoom.png'>View jobs
@@ -31,7 +32,7 @@
  </form>
  </td>
  <td>
- <form action='?'>
+ <form action='bweb.pl?'>
   <input type='hidden' name='age' value='2678400'>
   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
   <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
   </label>
  </form>
  </td>
+ <td>
+ <form action='bweb.pl?'>
+  <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
+  <label>
+  <input type="image" name='action' value='fileset_view' title='view fileset'
+   src='/bweb/zoom.png'> View FileSet
+  </label>
+ </form>
+ </td>
+<!-- Remove this to activate bfileview
+ <td>
+ <form action='bfileview.pl?'>
+  <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
+  <input type='hidden' name='where' value='/'>
+  <label>
+  <input type="image" name='action' value='bfileview' title='view file usage'
+   src='/bweb/colorscm.png' onclick='if (<TMPL_VAR JobFiles> > 5000) { return confirm("It could take long time, do you want to continue ?")} else { return 1; }'> View file usage
+  </label>
+ </form>
+ </td>
+-->
  </table>
 </div>
 
@@ -54,6 +76,7 @@ var header = new Array("JobId",
                       "Duration",
                        "JobFiles",
                        "JobBytes",
+                       "Errors",
                       "Pool",
                        "Volume Name",
                       "Status");
@@ -61,7 +84,7 @@ var header = new Array("JobId",
 var data = new Array();
 
 img = document.createElement("IMG");
-img.src="/bweb/<TMPL_VAR JobStatus>.png";
+img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", <TMPL_VAR joberrors>);
 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
 
 data.push( new Array(
@@ -73,7 +96,8 @@ data.push( new Array(
 "<TMPL_VAR StartTime>",
 "<TMPL_VAR duration>",
 "<TMPL_VAR JobFiles>",   
-"<TMPL_VAR JobBytes>",
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR joberrors>",
 "<TMPL_VAR poolname>",
 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
 img
@@ -102,4 +126,4 @@ nrsTable.setup(
 }
 );
 
-</script>
\ No newline at end of file
+</script>