]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Replace <input type='image'> with button
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 11 Nov 2007 00:26:25 +0000 (00:26 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 11 Nov 2007 00:26:25 +0000 (00:26 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5898 91ce42f0-d328-0410-95d8-f526ca767f89

33 files changed:
gui/bweb/tpl/ach_add.tpl
gui/bweb/tpl/ach_content.tpl
gui/bweb/tpl/begin.tpl
gui/bweb/tpl/client_job_status.tpl
gui/bweb/tpl/client_list.tpl
gui/bweb/tpl/config_edit.tpl
gui/bweb/tpl/config_view.tpl
gui/bweb/tpl/display_client_stats.tpl
gui/bweb/tpl/display_form_job.tpl
gui/bweb/tpl/display_form_media.tpl
gui/bweb/tpl/display_groups.tpl
gui/bweb/tpl/display_job_zoom.tpl
gui/bweb/tpl/display_location.tpl
gui/bweb/tpl/display_media.tpl
gui/bweb/tpl/display_media_zoom.tpl
gui/bweb/tpl/display_pool.tpl
gui/bweb/tpl/display_user.tpl
gui/bweb/tpl/display_users.tpl
gui/bweb/tpl/groups_add.tpl
gui/bweb/tpl/groups_edit.tpl
gui/bweb/tpl/help_extern.tpl
gui/bweb/tpl/help_extern_compute.tpl
gui/bweb/tpl/help_intern.tpl
gui/bweb/tpl/help_intern_compute.tpl
gui/bweb/tpl/location_add.tpl
gui/bweb/tpl/location_edit.tpl
gui/bweb/tpl/move_media.tpl
gui/bweb/tpl/run_job.tpl
gui/bweb/tpl/run_job_mod.tpl
gui/bweb/tpl/running_job.tpl
gui/bweb/tpl/scheduled_job.tpl
gui/bweb/tpl/update_location.tpl
gui/bweb/tpl/update_media.tpl

index 8a8e131d2e0b9315ffafbeeac8c4819758376f7b..6c5912c621945ee8c914f649d43a1365dfb0b044 100644 (file)
@@ -42,7 +42,7 @@
     </tr>
     </TMPL_LOOP>
     </table>
-    <input type="image" name='action' value='ach_add' src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='ach_add'> <img src='/bweb/save.png' alt=''>Save</button>
    </form>
 </div>
 
index 08952b62a770f3f982b564095a02313953bd4dbd..9092581298be2db70aa673dd89e91149e0f178c5 100644 (file)
@@ -18,38 +18,21 @@ Autochanger : <TMPL_VAR Name> (<TMPL_VAR nb_drive> Drives
      Tools
     </div>
     <div class='otherbox'>
-<label>
-<input type="image" name='action' value='label_barcodes'
-        title='run label barcodes' src='/bweb/label.png'>Label
-</label>
+<button type="submit" class="bp" name='action' value='label_barcodes'
+ title='run label barcodes'><img src='/bweb/label.png' alt=''>Label</button>
 <TMPL_IF nb_io>
-<label>
-<input type="image" name='action' value='eject'
-        title='put selected media on i/o' src='/bweb/extern.png'>
-Eject
-</label>
-<label>
-<input type="image" name='action' value='clear_io'
-        title='Clear i/o' src='/bweb/intern.png'>
-Clear I/O
-</label>
+<button type="submit" class="bp" name='action' value='eject'
+ title='put selected media on i/o'><img src='/bweb/extern.png' alt=''>Eject</button>
+<button type="submit" class="bp" name='action' value='clear_io'
+ title='Clear i/o'> <img src='/bweb/intern.png' alt=''>Clear I/O</button>
 </TMPL_IF>
-<label>
-<input type="image" name='action' value='update_slots'
-        title='run update slots' src='/bweb/update.png'>
-Update
-</label>
+<button type="submit" class="bp" name='action' value='update_slots'
+ title='run update slots'> <img src='/bweb/update.png' alt=''>Update</button>
 <br/><br/>
-<label>
-<input type="image" name='action' value='ach_load'
-       title='mount drive' src='/bweb/load.png'>
-Mount
-</label>
-<label>
-<input type="image" name='action' value='ach_unload'
-       title='umount drive' src='/bweb/unload.png'>
-Umount
-</label>
+<button type="submit" class="bp" name='action' value='ach_load'
+ title='mount drive'> <img src='/bweb/load.png' alt=''>Mount</button>
+<button type="submit" class="bp" name='action' value='ach_unload'
+ title='umount drive'> <img src='/bweb/unload.png' alt=''>Umount</button>
 
    </div>
     <td width='200'/>
index 349c8fc1051424c2d8daa827d4f55fbdeb0f4285..25174b82f7be5720b26222890b68c6dc045d600d 100644 (file)
@@ -65,7 +65,7 @@ if (navigator.appName == 'Konqueror') {
  <li> <a href="bweb.pl?action=about"> About </a> </li>
  <li style="padding: 0.25em 2em;float: right;">&nbsp;Logged as <TMPL_VAR NAME=loginname> </li>
  <li style="float: right;white-space: nowrap;">
-<input type="image" class="button" title="Search media" onclick="search_media();" src="/bweb/tape.png"><input type="image" title="Search client" onclick="search_client();" src="/bweb/client.png">&nbsp;<input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value="search..." onclick="this.value='';" title="Search media or client"></li>
+<button type="submit" class="bp" class="button" title="Search media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Search client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value="search..." onclick="this.value='';" title="Search media or client"></li> </button>
 </ul>
 
 <form name="search" action="bweb.pl?" method='GET'>
index c46ccc3b13a14de7c277698a2418432c215d1e92..28b0024ad380c264bbf97f7fb843577f4f5601f5 100644 (file)
  </tr>
 </table>
 <form name='form1' action='?' method='GET'>
-<input type="image" name='action' value='dsp_cur_job' 
- src='/bweb/update.png' title='refresh'>&nbsp;
+<button type="submit" class="bp" name='action' value='dsp_cur_job' 
+> <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>'>
-<input type="image" name='action' value='cancel_job'
+<button type="submit" class="bp" name='action' value='cancel_job'
        onclick="return confirm('Do you want to cancel this job ?')"
-        title='Cancel job' src='/bweb/cancel.png'>&nbsp;
+        title='Cancel job'> <img src='/bweb/cancel.png' alt=''>Cancel</button>
 </form>
  </div>
 
index c5da53edae6198009a2aff3aea8a676e1d1fcc11..bf06fcb90c1d01c95f198f3ba5a0cbf1290123db 100644 (file)
         </div>
         <div class="otherbox">
 <!--        <h1>Actions</h1> -->       
-       <label>
-       <input type="image" name='action' value='job' title='Show last job' src='/bweb/zoom.png'>Last jobs</label> &nbsp;
-       <label>
-       <input type="image" name='action' value='dsp_cur_job' title='Show current job' src='/bweb/zoom.png'>Current jobs</label> &nbsp;
-       <label>
-       <input type="image" name='action' value='client_status' title='Show client status' src='/bweb/zoom.png'>Status</label> &nbsp;
-       <label>
-       <input type="image" name='action' value='client_stats' title='Client stats' src='/bweb/chart.png'>Stats</label> &nbsp;
-       </label>
+       <button type="submit" class="bp" name='action' value='job' title='Show last job'> <img src='/bweb/zoom.png' alt=''>Last jobsView jobs</button>
+       <button type="submit" class="bp" name='action' value='dsp_cur_job' title='Show current job'> <img src='/bweb/zoom.png' alt=''>Current jobs</button>
+       <button type="submit" class="bp" name='action' value='client_status' title='Show client status'> <img src='/bweb/zoom.png' alt=''>Status </button>
+       <button type="submit" class="bp" name='action' value='client_stats' title='Client stats'> <img src='/bweb/chart.png' alt=''>Stats </button>
         </div>
 
 </form>
index e470d372b483337cd7567bb4a8414e6d84282852..f607dd0bb1f2a0c1388e3f57a8267875aa925773 100644 (file)
@@ -54,6 +54,6 @@
          <td> <input class="formulaire" type='checkbox' name='debug' <TMPL_IF debug> checked='checked' value='on' </TMPL_IF> > 
          </td></tr>
     </table>
-    <input type="image" name='action' value='apply_conf' src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='apply_conf'> <img src='/bweb/save.png' alt=''>Save</button>
    </form>
 </div>
index ea3ccfff25b024e670cd73cc839ccb853d8d2a8f..7aa431006b1488208165c3705b176d99e6c64e70 100644 (file)
@@ -39,9 +39,9 @@
     </table>
    <td>
   
-   <input type="image" name="action" value="ach_edit" title="edit" src='/bweb/edit.png'> 
-   <input type="image" name='action' value='ach_del' title='delete' src='/bweb/remove.png'>
-   <input type='image' name='action' value='ach_view' title='view' src='/bweb/zoom.png'>
+   <button type="submit" class="bp" name="action" value="ach_edit" title="edit"> <img src='/bweb/edit.png' alt=''>Edit</button>
+   <button type="submit" class="bp" name='action' value='ach_del' title='delete'> <img src='/bweb/remove.png' alt=''>Delete</button>
+   <button type="submit" class="bp" name='action' value='ach_view' title='view'> <img src='/bweb/zoom.png' alt=''>View</button>
     </form>
     </td>
    </tr>
   </table>
 
   <form action='?' method='GET'>
-   <label>
-   <input name='action' value='edit_conf' type="image" title='Edit' src='/bweb/edit.png'> Edit
-   </label>
-   <label>
-   <input name='action' value='ach_add' type="image" title='Add an autochanger' src='/bweb/add.png'> Add autochanger
-   </label>
+   <button name='action' value='edit_conf' type="submit" class="bp" title='Edit'> <img src='/bweb/edit.png' alt=''>Edit</button>
+   <button name='action' value='ach_add' type="submit" class="bp" title='Add an autochanger'> <img src='/bweb/add.png' alt=''>Add autochanger</button>
   </form>
 
   <TMPL_IF error>
index bbd11b88d14ed380cd81ba3d7f1d5956ee8e809d..dc6dd46f8e6d3e3b1ccce6adc5279e80dbf3132a 100644 (file)
         </div>
         <div class="otherbox">
        <h1>Actions</h1> 
-       <input type="image" name='action' value='job' title='Show last job'
-        src='/bweb/zoom.png'> &nbsp;
-       <input type="image" name='action' value='dsp_cur_job' title='Show current job' src='/bweb/zoom.png'> &nbsp;
-       <input type="image" name='action' value='client_stat' title='Client stats' src='/bweb/zoom.png'> &nbsp;
+       <button type="submit" class="bp" name='action' value='job' title='Show last job'> <img src='/bweb/zoom.png' alt=''>View last jobs</button>
+       <button type="submit" class="bp" name='action' value='dsp_cur_job' title='Show current job'> <img src='/bweb/zoom.png' alt=''>View current jobs</button>
+       <button type="submit" class="bp" name='action' value='client_stat' title='Client stats'> <img src='/bweb/zoom.png' alt=''>View stats</button>
         </div>
 -->
 </form>
index 3840ee7a4cf2d709f7405dfad0484076c8514f9b..b402d3d90a1680f946c6d172514dedd044339dbf 100644 (file)
 </tr>
 -->
 </table>
-  <input type="image" name='action' 
-         value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'
-         src='/bweb/update.png'>
+  <button type="submit" class="bp" name='action' 
+    value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
+     <img src='/bweb/update.png' alt=''> </button>
 
 </form>
 </div>
index 6944073b4d9c941dfdf8792a022be031523ef199..f343a474d2ebd1e68b2a5c6239ec8b2d11409fed 100644 (file)
@@ -76,7 +76,7 @@
 </tr>
 
 </table>
-  <input type="image" name='action' value='media' src='/bweb/update.png'>
+  <button type="submit" class="bp" name='action' value='media'> <img src='/bweb/update.png' alt=''>Update</button>
 
 </form>
 </div>
index f678ce8e88f117c45bba9bbf253f0a04b1b4ff40..c0ad0e14c9c8b78991a54959a7f9e93ce842a4b5 100644 (file)
@@ -5,22 +5,19 @@
  <div class="bodydiv">
    <form action='?' method='get'>
     <table id='id<TMPL_VAR ID>'></table>
-    <input type="image" name='action' value='groups_add' title='Add' src='/bweb/add.png'>&nbsp;
-    <input type="image" name='action' value='groups_del' 
+    <button type="submit" class="bp" name='action' value='groups_add' title='Add'> <img src='/bweb/add.png' alt=''>Add</button>
+    <button type="submit" class="bp" name='action' value='groups_del' 
      onclick="return confirm('Do you want to delete this group ?');" 
-     title='Supprimer' src='/bweb/remove.png'>&nbsp;
-    <input type="image" name='action' value='groups_edit' title='Modify' src='/bweb/edit.png'>&nbsp;
+     title='Supprimer'> <img src='/bweb/remove.png' alt=''>Remove</button>
+    <button type="submit" class="bp" name='action' value='groups_edit' title='Modify'> <img src='/bweb/edit.png' alt=''>Edit</button>
 
-    <input type="image" name='action' value='client' title='View members'
-     src='/bweb/zoom.png'>&nbsp;
-    <input type="image" name='action' value='job' title='View jobs'
-     src='/bweb/zoom.png'>&nbsp;
-    <input type="image" name='action' value='group_stats' title='Statistics' src='/bweb/chart.png'>&nbsp;
+    <button type="submit" class="bp" name='action' value='client' title='View members'> <img src='/bweb/zoom.png' alt=''>View members</button>
+    <button type="submit" class="bp" name='action' value='job' title='View jobs'> <img src='/bweb/zoom.png' alt=''>View jobs</button>
+    <button type="submit" class="bp" name='action' value='group_stats' title='Statistics'> <img src='/bweb/chart.png' alt=''>View stats</button>
    </form>
    <form action='?' method='get'>
     <input type='hidden' name='action' value='client'>
-    <input type="image" name='notingroup' value='yes' title='View non-members'
-     src='/bweb/zoom.png'>&nbsp;
+    <button type="submit" class="bp" name='notingroup' value='yes' title='View non-members'> <img src='/bweb/zoom.png' alt=''>View others</button>
    </form>
  </div>
 
index 78f15058927a6cc05aba9309eac0bd274ca135c5..c367f9c90775830014c07a3a2ae509dfe7acebc2 100644 (file)
@@ -4,77 +4,65 @@
  <div class="bodydiv">
  <table id='id0'></table>
  <table><td>
- <form action='bweb.pl?'>
+ <form name="delete" 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>
+  <button type="submit" name='action' class="bp" value='delete' title='delete this job'
+ onclick="return confirm('Do you want to delete this job from the catalog ?');">
+   <img src='/bweb/purge.png' alt=''> Delete </button>
  </form>
  </td><td>
- <form action='bweb.pl?'>
+ <form name="media" action='bweb.pl?'>
   <TMPL_LOOP volumes>
    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
   </TMPL_LOOP>   
-  <label>
-  <input type="image" name='action' value='media' title='view media' 
-   src='/bweb/zoom.png'>View media
-  </label>
+  <button type="submit" name='action' value='media' title='view media' class="bp">
+   <img src='/bweb/zoom.png'alt=''>View media </button>
  </form>
  </td>
  <td>
- <form action='bweb.pl?'>
+ <form name="job" 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
-  </label>
+  <button type="submit" class="bp" name='action' value='job' title='view <TMPL_VAR Client> jobs'><img src='/bweb/zoom.png'>View jobs</button>
  </form>
  </td>
  <td>
- <form action='bweb.pl?'>
+ <form name="graph" 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>
-  <input type="image" name='action' value='graph' title='view trends'
-   src='/bweb/chart.png'> View stats
-  </label>
+  <button type="submit" class="bp" name='action' value='graph' title='view trends'>
+   <img src='/bweb/chart.png' alt=''> View stats </button>
  </form>
  </td>
  <td>
- <form action='bweb.pl?'>
+ <form name="fileset_view" 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>
+  <button type="submit" class="bp" name='action' value='fileset_view' title='view fileset'> 
+ <img src='/bweb/zoom.png' alt=''> View FileSet</button>
  </form>
  </td>
 <!-- Remove this to activate bfileview 
  <td>
- <form action='bfileview.pl?'>
+ <form name="bfileview" 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> > 50000) { return confirm("It could take long time, do you want to continue ?")} else { return 1; }'> View file usage
-  </label>
+  <button type="submit" class="bp" name='action' value='bfileview' 
+   title='view file usage' 
+   onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("It could take long time, do you want to continue ?")} else { return 1; }'>
+   <img src='/bweb/colorscm.png' alt=''> View file usage </button>
  </form>
  </td>
 -->
  <td>
- <form action='bweb.pl?' onsubmit="document.getElementById('rerun_level').value=joblevelname['<TMPL_VAR NAME=Level>']">
+ <form name="rerun" 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>
+  <button type="submit" class="bp" name='action' value='run_job_mod' title='run this job again'>
+   <img src='/bweb/R.png'> Run this job </button>
  </form>
  </td>
 <TMPL_IF joberrors>
index b00075877b6a7542ebad6bc2d34e51f76573a3aa..18caefea9f2d7cdf2831b26e0549713147f7e2ba 100644 (file)
@@ -5,12 +5,11 @@
  <div class="bodydiv">
    <form action='?' method='get'>
     <table id='id<TMPL_VAR ID>'></table>
-    <input type="image" name='action' value='location_add' title='Add a location' src='/bweb/add.png'>&nbsp;
-    <input type="image" name='action' value='location_del' title='Remove a location' src='/bweb/remove.png'>&nbsp;
-    <input type="image" name='action' value='location_edit' title='Edit a location' src='/bweb/edit.png'>&nbsp;
+    <button type="submit" class="bp" name='action' value='location_add' title='Add a location'> <img src='/bweb/add.png' alt=''>Add</button>
+    <button type="submit" class="bp" name='action' value='location_del' title='Remove a location'> <img src='/bweb/remove.png' alt=''>Remove</button>
+    <button type="submit" class="bp" name='action' value='location_edit' title='Edit a location'> <img src='/bweb/edit.png' alt=''>Edit</button>
 
-    <input type="image" name='action' value='media' title='Show content'
-     src='/bweb/zoom.png'>
+    <button type="submit" class="bp" name='action' value='media' title='Show content'> <img src='/bweb/zoom.png' alt=''>View content</button>
    </form>
  </div>
 
index cad256d73bc78c846428da04a119ac14e0a12ff5..19ef23920e792ed1d8e9af31168c8739fff4c58a 100644 (file)
@@ -20,14 +20,14 @@ 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' 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 medium' src='/bweb/edit.png'>&nbsp;
-      <input type="image" name='action' value='media_zoom' title='Information' src='/bweb/zoom.png'>&nbsp;
+      <button type="submit" class="bp" name='action' value='extern' title='Move out'> <img src='/bweb/extern.png' onclick='return confirm("Do you want to eject selected media ?");' alt=''>Eject</button>
+      <button type="submit" class="bp" name='action' value='intern' title='Move in'> <img src='/bweb/intern.png' alt=''>Load</button>
+      <button type="submit" class="bp" name='action' value='update_media' title='Update medium'> <img src='/bweb/edit.png' alt=''>Edit</button>
+      <button type="submit" class="bp" name='action' value='media_zoom' title='Information'> <img src='/bweb/zoom.png' alt=''>View</button>
 <!--
-      <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>&nbsp;
+      <button type="submit" class="bp" name='action' value='purge' title='Purge'> <img src='/bweb/purge.png' alt=''>Purge</button>
 -->
-      <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
+      <button type="submit" class="bp" name='action' value='prune' title='Prune'> <img src='/bweb/prune.png' alt=''>Prune</button>
    </form>
  </div>
 
index 6f8a53a5cb1d30d4c8d8833adf50edfa9d51f2c3..94d9d4ecbf60db4fa5b1af093497f87a0c7aca00 100644 (file)
    <form action='?' method='get'>
       <input type='hidden' name='media' value='<TMPL_VAR volumename>'>
 <TMPL_IF online>&nbsp;
-      <input type="image" name='action' value='extern' onclick='return confirm("Do you want to eject this medium ?");' title='move out' src='/bweb/extern.png'>&nbsp;
+      <button type="submit" class="bp" name='action' value='extern' onclick='return confirm("Do you want to eject this volume ?");' title='move out'> <img src='/bweb/extern.png' alt=''>Eject</button>
 <TMPL_ELSE>
-      <input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>&nbsp;
+      <button type="submit" class="bp" name='action' value='intern' title='move in'> <img src='/bweb/intern.png' alt=''>Load</button>
 </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' 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;
+      <button type="submit" class="bp" name='action' value='update_media' title='Update'><img src='/bweb/edit.png' alt=''>Edit</button>
+      <button type="submit" class="bp" name='action' value='purge' title='Purge'> <img src='/bweb/purge.png' onclick="return confirm('Do you want to purge this volume ?')" alt=''>Purge</button>
+      <button type="submit" class="bp" name='action' value='prune' title='Prune'> <img src='/bweb/prune.png' alt=''>Prune</button>
 <TMPL_IF Locationlog>
       <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='View location log' src='/bweb/zoom.png'></a>
 </TMPL_IF>
index cda70330f97226941f60cad90704ac6f68656307..852f2cd5e2c6d32ec1ac9473f8c5a3d4caa1b839 100644 (file)
@@ -5,7 +5,7 @@
  <div class="bodydiv">
    <form action='?' method='get'>
     <table id='id<TMPL_VAR ID>'></table>
-    <input type="image" type='submit' name='action' value='media' title='Show content' src='/bweb/zoom.png'>
+    <button type="submit" class="bp" type='submit' name='action' value='media' title='Show content'> <img src='/bweb/zoom.png' alt=''>View</button>
     <input id="mediatype" type='hidden' name='mediatype' value=''>
    </form>
    <br/>
index 5c8d273764030558b046a1db67a913ebe02264ec..435de7d8733a5d911bfa1ec5736e8b9eb8d83e3e 100644 (file)
@@ -50,8 +50,8 @@
  </td>
 </tr>
 </table>
-    <input type="image" name='action' value='user_save'
-     src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='user_save'>
+     <img src='/bweb/save.png' alt=''> </button>
 </form>
 </div>
 
index 7a477a9852e6dbfa76f0b31e1d38135ce958b630..e34163ac22931a0c74312a8f3b806019f9e04e41 100644 (file)
@@ -5,16 +5,14 @@
  <div class="bodydiv">
    <form action='?' method='get'>
     <table id='id<TMPL_VAR ID>'></table>
-    <input type="image" name='action' value='user_add' title='Add' src='/bweb/add.png'>&nbsp;
-    <input type="image" name='action' value='user_del' 
+    <button type="submit" class="bp" name='action' value='user_add' title='Add'> <img src='/bweb/add.png' alt=''>Add</button>
+    <button type="submit" class="bp" name='action' value='user_del' 
      onclick="return confirm('Do you want to delete this user ?');" 
-     title='Supprimer' src='/bweb/remove.png'>&nbsp;
-    <input type="image" name='action' value='user_edit' title='Modify' src='/bweb/edit.png'>&nbsp;
+     title='Remove'> <img src='/bweb/remove.png' alt=''>Remove </button>
+    <button type="submit" class="bp" name='action' value='user_edit' title='Modify'> <img src='/bweb/edit.png' alt=''>Edit </button>
 
-    <input type="image" name='action' value='client' title='View clients'
-     src='/bweb/zoom.png'>&nbsp;
-    <input type="image" name='action' value='job' title='View jobs'
-     src='/bweb/zoom.png'>&nbsp;
+    <button type="submit" class="bp" name='action' value='client' title='View clients'> <img src='/bweb/zoom.png' alt=''>View clients</button>
+    <button type="submit" class="bp" name='action' value='job' title='View jobs'> <img src='/bweb/zoom.png' alt=''>View jobs</button>
    </form>
  </div>
 
index f19ab681537d1516eeccffeaa2bb31f94cd689cf..ca94cfa5993e4ff3d4cc4320dba8f6790e5698ed 100644 (file)
@@ -10,7 +10,6 @@
          </td>
      </tr>
     </table>
-    <input type="image" name='action' value='groups_add' title="Save"
-      src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='groups_add' title="Save"> <img src='/bweb/save.png' alt=''>Save</button>
    </form>
 </div>
index 88a261248815748474469b621b32703a77366a36..ffa3ee9ba3794448a518e7d9bde7797ea7cfe533 100644 (file)
@@ -21,8 +21,8 @@
          </td>
      </tr>
     </table>
-    <input type="image" name='action' value='groups_save'
-     src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='groups_save'>
+     <img src='/bweb/save.png' alt=''>Save</button>
    </form>
 </div>
 
index 465a86c42e958899be558bb24fa1c2c11d9ca3bb..5e543c691889dbe59b0bb719ea82e7098b3b260d 100644 (file)
@@ -37,7 +37,7 @@ be asked to make your selection on the next screen.
               value='10'> </td>
     </tr>
     <tr>
-        <td><input type="image" name='action' value='compute_extern_media' title='Next' src='/bweb/next.png'>
+        <td><button type="submit" class="bp" name='action' value='compute_extern_media' title='Next'> <img src='/bweb/next.png' alt=''> </button>
         </td><td/>
     </tr>
    </table>
index 906e6c332e716380f2e4ee8688e6274ed27f3efa..5809395f830e1b8efe664fe2f19e32391fcb6f49 100644 (file)
@@ -8,9 +8,9 @@
     <table id='compute'></table>
     <table><tr>
     <td style='align: left;'>
-    <input type="image" onclick='javascript:window.history.go(-2);' title='Back' src='/bweb/prev.png'>
+    <button type="submit" class="bp" onclick='javascript:window.history.go(-2);' title='Back'> <img src='/bweb/prev.png' alt=''>Back</button>
     </td><td style='align: right;'>
-    <input type="image" name='action' value='extern' src='/bweb/extern.png' title='Eject selection'>
+    <button type="submit" class="bp" name='action' value='extern' title='Eject selection'> <img src='/bweb/extern.png' alt=''>Eject</button>
    </td></tr>
    </form>
  </div>
index e8a1edc6bccc1bbc11f9769eee307dbcea5be31e..f4ac188c70ca1db4b74c1bfd71f06efe4bec13e1 100644 (file)
@@ -43,8 +43,7 @@ be asked to make your selection on the next screen.
                 size='3' value='10'> </td>
     </tr>
     <tr>
-        <td><input type="image" name='action' value='compute_intern_media' 
-                title='Next' src='/bweb/next.png'>
+        <td><button type="submit" class="bp" name='action' value='compute_intern_media' title='Next'> <img src='/bweb/next.png' alt=''>Next</button>
         </td><td/>
     </tr>
    </table>
index cd4aa6db943d4bedea485f41b2f02c07e632f3a0..2f2de98d6a0eef692655c1a35f5bd79fbcccdccf 100644 (file)
@@ -8,11 +8,11 @@
     <table id='compute'></table>
     <table><tr>
     <td style='align: left;'>
-    <input type="image" onclick='javascript:window.history.go(-2);' title='Back' src='/bweb/prev.png'>
+    <button type="submit" class="bp" onclick='javascript:window.history.go(-2);' title='Back'> <img src='/bweb/prev.png' alt=''>Back</button>
     </td><td style='align: right;'>
     <input type="hidden" name='enabled' value="yes">
-    <input type="image" name='action' value='move_media'
-     src='/bweb/intern.png'>
+    <button type="submit" class="bp" name='action' value='move_media'> 
+     <img src='/bweb/intern.png' alt=''></button>
    </td></tr>
    </form>
  </div>
index 8dd702600effdde3dbde0142497703c18fe3b45c..5fb28d02f460173aec1876ec4d73c0308d6b12ef 100644 (file)
          <td> <input class="formulaire" type='text' value='10' name='cost' size='3'>
          </td>
      </tr>
-     <tr><td>Enabled :</td> 
-         <td> <input class="formulaire" type='checkbox' value='10' name='enabled'>
-         </td>
-     </tr>
+    <tr><td>Enabled:</td>
+        <td> <select name='enabled' class='formulaire'>
+           <option value='yes'>yes</option>
+           <option value='no'>no</option>
+           <option value='archived'>archived</option>
+           </select>
+        </td>
+    </tr>
     </table>
-    <input type="image" name='action' value='location_add' title="save"
-      src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='location_add' title="save" ><img src='/bweb/save.png' alt=''>Save</button>
    </form>
 
 Tips: It's a good idea to have a location per autochanger. 
index c7f28afe57375f6a0329d3e1f09092082e31cea7..fa11cb14d05abed3b6a8747d4aecfe47f14bc08b 100644 (file)
@@ -24,8 +24,8 @@
         </td>
     </tr>
     </table>
-    <input type="image" name='action' value='location_save'
-     src='/bweb/save.png'>
+    <button type="submit" class="bp" name='action' value='location_save'>
+      <img src='/bweb/save.png' alt=''>Save</button>
    </form>
 </div>
 
index 3c5c66cd61234c8e11769f32b293dba856ee519b..78b75664e026f7ddb8ccfda0924d255722dc1ec0 100644 (file)
@@ -25,9 +25,7 @@
 <textarea name="comment" class='formulaire'></textarea>
     </td></tr>
     </table>
-    <label>
-    <input type="image" type='submit' name='action' value='change_location' src='/bweb/apply.png'> Move
-    </label>
+    <button type="submit" class="bp" type='submit' name='action' value='change_location'> <img src='/bweb/apply.png' alt=''> Move </button>
    </form>
  </div>
 
index 85eb1f79eb5f93780296b1d92d81c0c2a95942f8..9f333617a54a0db9c7cdf304a76042a844bd4cd7 100644 (file)
    </td></tr>
    </table>
    <br/>
-   <label>
-   <input type="image" name='action' value='enable_job' title='Enable'
-    src='/bweb/inflag1.png'> Enable
-   </label>
-   <label>
-   <input type="image" name='action' value='disable_job' title='Disable'
-    src='/bweb/inflag0.png'> Disable
-   </label>
-   <label>
-   <input type="image" name='action' value='run_job_mod' title='Run now'
-    src='/bweb/R.png'> Run now 
-   </label>
+   <button type="submit" class="bp" name='action' value='enable_job' title='Enable'> <img src='/bweb/inflag1.png' alt=''> Enable </button>
+   <button type="submit" class="bp" name='action' value='disable_job' title='Disable' > <img src='/bweb/inflag0.png' alt=''> Disable </button>
+   <button type="submit" class="bp" name='action' value='run_job_mod' title='Run now' > <img src='/bweb/R.png' alt=''> Run now  </button>
   </form>
  </div>
index e3c0cd0e1a11dc441a2ce975581372aad28a07de..db11dbb65e2d6210f9e895c33e7aa878a345a629 100644 (file)
    </td></tr>
    </table>
    <br/>
+
   <label onclick='
            document.getElementById("more1").style.visibility="visible";
            document.getElementById("more2").style.visibility="visible";'>
   <img title='Display more options' src='/bweb/add.png'>More options</label>
-  <label>
-  <input type="image" name='action' value='run_job_now' title='Run job'
-   src='/bweb/R.png'>Run now
-  </label>
-  <label>
-  <input type="image" name='action' value='fileset_view' title='View FileSet'
-   src='/bweb/zoom.png'>View FileSet
-  </label>
+
+  <button type="submit" class="bp" name='action' value='run_job_now' title='Run job'><img src='/bweb/R.png' alt=''>Run now</button>
+  <button type="submit" class="bp" name='action' value='fileset_view' title='View FileSet'><img src='/bweb/zoom.png' alt=''>View FileSet</button>
   </form>
  </div>
 
index cf3655d66d258ed87107d06ecb38d6ba322b3119..c8d194deb40f47d1b406c57e354c91f8998f535d 100644 (file)
@@ -7,14 +7,11 @@
    <table id='id<TMPL_VAR NAME=ID>'></table>
    <br/>
 <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'
+<button type="submit" class="bp" name='action' value='dsp_cur_job' 
+ title='View job'> <img src='/bweb/zoom.png' alt=''>View</button>
+<button type="submit" class="bp" type='submit' name='action' value='cancel_job'
  onclick="return confirm('Do you want to cancel the selected job?')"
- title='Cancel job' src='/bweb/cancel.png'>
-</label>
+ title='Cancel job'> <img src='/bweb/cancel.png' alt=''>Cancel</button>
    </form>
 
  </div>
index 8bf1fd40a17dbfd91134ef48ea2f0b246baa9d9f..a63ba2ef6f85d0226c8f62b9d6845d496bf630f5 100644 (file)
@@ -5,14 +5,10 @@
  <div class='bodydiv'>
     <form action='<TMPL_VAR cginame>?' method='GET'>
      <table id='id<TMPL_VAR ID>'></table>
-     <label>
-     <input type="image" name='action' value='run_job_mod'
-      src='/bweb/R.png' title='Run now'>  Run now
-     </label>
-     <label>
-      <input type="image" name='action' value='disable_job'
-       src='/bweb/inflag0.png' title='Disable'> Disable
-      </label>
+     <button type="submit" class="bp" name='action' title='Run now' value='run_job_mod'>
+       <img src='/bweb/R.png' alt=''>  Run now </button>
+      <button type="submit" class="bp" name='action' title='Disable' value='disable_job'>
+       <img src='/bweb/inflag0.png' alt=''> Disable </button>
     </form>
  </div>
 
index 93fc9eabf367d9c6d5fad09eacff35cb3eff0d2a..90bcacdf8d133b15a3bfdc0e554da67c91c51ff3 100644 (file)
@@ -10,7 +10,7 @@
       <option id='loc_<TMPL_VAR NAME=location>' value='<TMPL_VAR NAME=location>'><TMPL_VAR NAME=location></option>
    </TMPL_LOOP>
   </select>
-  <input type="image" name='action' value='save_location' src='/bweb/apply.png'>
+  <button type="submit" class="bp" name='action' value='save_location'> <img src='/bweb/apply.png' alt=''>Apply</button>
    </form>
  </div>
 
index f09db42d7a249cfa4188138d65bdbe594b1769d6..cf4269799a234db7e22a53ea047e08834fcedc6e 100644 (file)
     </table>
 <table>
  <td>
- <label>
-  <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Apply
-  </label>
-  <label>
-  <input type="image" name='action' title='Update from pool'
-    value='update_from_pool' src='/bweb/update.png'> Update from pool
-  </label>
+  <button type="submit" class="bp" name='action' value='do_update_media'> <img src='/bweb/apply.png' alt=''> Apply </button>
+  <button type="submit" class="bp" name='action' title='Update from pool'
+    value='update_from_pool'> <img src='/bweb/update.png' alt=''> Update from pool </button>
  </form>
  </td>
  <td>
   <form action='?' method='GET'>
    <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
-   <label>
-    <input type="image" name='action' value='media'
-     src='/bweb/zoom.png'>View Pool
-   </label>
+    <button type="submit" class="bp" name='action' value='media'>
+     <img src='/bweb/zoom.png' alt=''>View Pool </button>
   </form>
  </td>
 </table>