]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/display_job_zoom.tpl
ebl add a re-run option in display_job_zoom
[bacula/bacula] / gui / bweb / tpl / display_job_zoom.tpl
index b0534e1083863e0c9269c71bd12ce17397768761..a9b30f386a47226aca979b164202724b48a68bf9 100644 (file)
   </label>
  </form>
  </td>
-<!-- Remove this to enable fileview
+<!-- 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'> View file usage
+   src='/bweb/colorscm.png' onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("It could take long time, do you want to continue ?")} else { return 1; }'> View file usage
   </label>
  </form>
  </td>
 -->
+ <td>
+ <form action='bweb.pl?' onsubmit="document.getElementById('rerun_level').value=joblevelname['<TMPL_VAR NAME=Level>']">
+  <input type='hidden' name='storage' value='<TMPL_VAR storage>'>
+  <input type='hidden' name='fileset' value='<TMPL_VAR fileset>'>
+  <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
+  <input type='hidden' name='client' value='<TMPL_VAR client>'>
+  <input type='hidden' id="rerun_level" name='level'>
+  <input type='hidden' name='job' value='<TMPL_VAR jobname>'>
+  <label>
+  <input type="image" name='action' value='run_job_mod' title='run this job again'
+   src='/bweb/R.png'> Run this job
+  </label>
+ </form>
+ </td>
  </table>
 </div>