]> git.sur5r.net Git - bacula/bacula/commitdiff
Add slot field in storage operations
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 16 Jul 2009 15:18:33 +0000 (15:18 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 16 Jul 2009 15:18:33 +0000 (15:18 +0000)
Update update volume page

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9028 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lang/en/tpl/cmd_storage.tpl
gui/bweb/lang/es/tpl/cmd_storage.tpl
gui/bweb/lang/fr/tpl/cmd_storage.tpl
gui/bweb/lib/Bweb.pm
gui/bweb/tpl/cmd_storage.tpl

index 3340beb4c8e93146591e0f1169f4c004f4558c30..ab14d33a10941f7e85ffbab27c6e2dcda58e5d85 100644 (file)
@@ -18,6 +18,9 @@
      <tr><td>Drive number (if any):</td> 
          <td><input size='3' type='text' name='drive' value='0' class='formulaire'></td>
      </tr>
+     <tr><td>Slot number (if any):</td> 
+         <td><input size='3' type='text' name='slot' value='0' class='formulaire'></td>
+     </tr>
      <tr><td>Action:</td> 
          <td>
 <button type="submit" class="bp" name='storage_cmd' value='mount'
index fd757db55b7ca9cb4f5b718866c2333312cef7c6..ab14d33a10941f7e85ffbab27c6e2dcda58e5d85 100644 (file)
@@ -18,6 +18,9 @@
      <tr><td>Drive number (if any):</td> 
          <td><input size='3' type='text' name='drive' value='0' class='formulaire'></td>
      </tr>
+     <tr><td>Slot number (if any):</td> 
+         <td><input size='3' type='text' name='slot' value='0' class='formulaire'></td>
+     </tr>
      <tr><td>Action:</td> 
          <td>
 <button type="submit" class="bp" name='storage_cmd' value='mount'
@@ -27,7 +30,7 @@
 <button type="submit" class="bp" name='storage_cmd' value='release'
  title='release drive'> <img src='/bweb/unload.png' alt=''>Release</button>
 <button type="submit" class="bp" name='storage_cmd' value='status'
- title='status drive'> <img src='/bweb/zoom.png' alt=''>Estado</button>
+ title='status drive'> <img src='/bweb/zoom.png' alt=''>Status</button>
          </td>
      </tr>
     </table>
index b0ba9092bbd944cdc30bb328cca87ed9dfb07f9a..ab14d33a10941f7e85ffbab27c6e2dcda58e5d85 100644 (file)
      <tr><td>Drive number (if any):</td> 
          <td><input size='3' type='text' name='drive' value='0' class='formulaire'></td>
      </tr>
+     <tr><td>Slot number (if any):</td> 
+         <td><input size='3' type='text' name='slot' value='0' class='formulaire'></td>
+     </tr>
      <tr><td>Action:</td> 
          <td>
 <button type="submit" class="bp" name='storage_cmd' value='mount'
- title='Charger un lecteur'> <img src='/bweb/load.png' alt=''>Mount</button>
+ title='mount drive'> <img src='/bweb/load.png' alt=''>Mount</button>
 <button type="submit" class="bp" name='storage_cmd' value='umount'
- title='Décharger un lecteur'> <img src='/bweb/unload.png' alt=''>Umount</button>
+ title='umount drive'> <img src='/bweb/unload.png' alt=''>Umount</button>
 <button type="submit" class="bp" name='storage_cmd' value='release'
  title='release drive'> <img src='/bweb/unload.png' alt=''>Release</button>
 <button type="submit" class="bp" name='storage_cmd' value='status'
- title='status drive'> <img src='/bweb/zoom.png' alt=''>Statut</button>
+ title='status drive'> <img src='/bweb/zoom.png' alt=''>Status</button>
          </td>
      </tr>
     </table>
index eb43955d4e85556c6cdf3d15e0490664e95a026c..30f184131014aa2bdd4b3860fcafe2653cb537b9 100644 (file)
@@ -4450,6 +4450,7 @@ sub do_update_media
         title => "Update a volume ",
         name => $update,
         id => $cur_id++,
+        hide_output => 1,
     }, "command.tpl");  
 
 
@@ -4859,11 +4860,11 @@ sub cmd_storage
 {
     my ($self) = @_;
     $self->can_do('r_storage_mgnt');
-    my $arg = $self->get_form(qw/storage storage_cmd drive/);
+    my $arg = $self->get_form(qw/storage storage_cmd drive slot/);
     my $b = $self->get_bconsole();
 
     if ($arg->{storage} and $arg->{storage_cmd}) {
-        my $cmd = "$arg->{storage_cmd} storage=\"$arg->{storage}\" drive=$arg->{drive}";
+        my $cmd = "$arg->{storage_cmd} storage=\"$arg->{storage}\" drive=$arg->{drive} slot=$arg->{slot}";
         my $ret = $b->send_cmd($cmd);
 
         $self->display({
index 2d01f435f52cc564d9b1b63bfe133e5dde59de89..ba7c641e939f26918786a63ca6ed8f366666fa0e 100644 (file)
@@ -18,6 +18,9 @@
      <tr><td>__Drive number (if any):__</td> 
          <td><input size='3' type='text' name='drive' value='0' class='formulaire'></td>
      </tr>
+     <tr><td>__Slot number (if any):__</td> 
+         <td><input size='3' type='text' name='slot' value='0' class='formulaire'></td>
+     </tr>
      <tr><td>__Action:__</td> 
          <td>
 <button type="submit" class="bp" name='storage_cmd' value='mount'