]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add confirm message for dangerous operations
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 17 Oct 2006 18:28:58 +0000 (18:28 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 17 Oct 2006 18:28:58 +0000 (18:28 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3564 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/tpl/client_job_status.tpl
gui/bweb/tpl/display_job_zoom.tpl
gui/bweb/tpl/display_media.tpl
gui/bweb/tpl/display_media_zoom.tpl
gui/bweb/tpl/running_job.tpl

index aaf280947bd06fc96f9e8e9444c19731b9976bf1..c46ccc3b13a14de7c277698a2418432c215d1e92 100644 (file)
@@ -29,6 +29,7 @@
 <input type='hidden' name='client' value='<TMPL_VAR Client>'>
 <input type='hidden' name='jobid' value='<TMPL_VAR JobId>'>
 <input type="image" name='action' value='cancel_job'
+       onclick="return confirm('Do you want to cancel this job ?')"
         title='Cancel job' src='/bweb/cancel.png'>&nbsp;
 </form>
  </div>
index 078dda6f35f92e6be445087404152ea8aa1e7ae1..980192b925bf866986645228b7cddb49289fc255 100644 (file)
@@ -8,6 +8,7 @@
   <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>
index 7295cea9362ae0179587b42b799e99a553c85901..29c571e4490387f4a702b0208b1b9a9b89186ba9 100644 (file)
@@ -21,7 +21,7 @@ Location : <TMPL_VAR location>
 
    <form action='?action=test' method='get'>
     <table id='id_pool_<TMPL_VAR ID>'></table>
-      <input type="image" name='action' value='extern' title='Move out' src='/bweb/extern.png'>&nbsp;
+      <input type="image" name='action' value='extern' title='Move out' src='/bweb/extern.png' onclick='return confirm("Do you want to eject selected media ?");'>&nbsp;
       <input type="image" name='action' value='intern' title='Move in' src='/bweb/intern.png'>&nbsp;
       <input type="image" name='action' value='update_media' title='Update media' src='/bweb/edit.png'>&nbsp;
       <input type="image" name='action' value='media_zoom' title='Informations' src='/bweb/zoom.png'>&nbsp;
index be24f3176d8d2f4fbd1a7d1099db4ccb6d68be3d..cdd251532839037d7f313b62057b23f2599d671f 100644 (file)
@@ -19,7 +19,7 @@
       <input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>&nbsp;
 </TMPL_IF>
       <input type="image" name='action' value='update_media' title='Update' src='/bweb/edit.png'>&nbsp;
-      <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>&nbsp;
+      <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png' onclick="return confirm('Do you want to purge this volume ?')">&nbsp;
       <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>&nbsp;
 <TMPL_IF Locationlog>
       <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='View location log' src='/bweb/zoom.png'></a>
index c3121c57f0c4b17be5d03235ec9f32397fdd7f8c..0ed0b4a066506035d3b212dfe65e7c13487b196f 100644 (file)
@@ -7,12 +7,13 @@
    <table id='id<TMPL_VAR NAME=ID>'></table>
    <br/>
 <label>
-<input type="image" type='submit' name='action' value='cancel_job'
- title='Cancel job' src='/bweb/cancel.png'>
-</label>
-<label>
 <input type='image' name='action' value='dsp_cur_job' 
  title='View job' src='/bweb/zoom.png'>
+</label>
+<label>
+<input type="image" type='submit' name='action' value='cancel_job'
+ onclick="return confirm('Do you want to cancel selected job ?')"
+ title='Cancel job' src='/bweb/cancel.png'>
 </label>
    </form>