From d61e3e082b1c5ba14aa46fb8c6eed64f2bc89225 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 16 Jul 2009 15:18:33 +0000 Subject: [PATCH] Add slot field in storage operations 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 | 3 +++ gui/bweb/lang/es/tpl/cmd_storage.tpl | 5 ++++- gui/bweb/lang/fr/tpl/cmd_storage.tpl | 9 ++++++--- gui/bweb/lib/Bweb.pm | 5 +++-- gui/bweb/tpl/cmd_storage.tpl | 3 +++ 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/gui/bweb/lang/en/tpl/cmd_storage.tpl b/gui/bweb/lang/en/tpl/cmd_storage.tpl index 3340beb4c8..ab14d33a10 100644 --- a/gui/bweb/lang/en/tpl/cmd_storage.tpl +++ b/gui/bweb/lang/en/tpl/cmd_storage.tpl @@ -18,6 +18,9 @@ Drive number (if any): + Slot number (if any): + + Action: + title='status drive'> Status diff --git a/gui/bweb/lang/fr/tpl/cmd_storage.tpl b/gui/bweb/lang/fr/tpl/cmd_storage.tpl index b0ba9092bb..ab14d33a10 100644 --- a/gui/bweb/lang/fr/tpl/cmd_storage.tpl +++ b/gui/bweb/lang/fr/tpl/cmd_storage.tpl @@ -18,16 +18,19 @@ Drive number (if any): + Slot number (if any): + + Action: + title='mount drive'> Mount + title='umount drive'> Umount + title='status drive'> Status diff --git a/gui/bweb/lib/Bweb.pm b/gui/bweb/lib/Bweb.pm index eb43955d4e..30f1841310 100644 --- a/gui/bweb/lib/Bweb.pm +++ b/gui/bweb/lib/Bweb.pm @@ -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({ diff --git a/gui/bweb/tpl/cmd_storage.tpl b/gui/bweb/tpl/cmd_storage.tpl index 2d01f435f5..ba7c641e93 100644 --- a/gui/bweb/tpl/cmd_storage.tpl +++ b/gui/bweb/tpl/cmd_storage.tpl @@ -18,6 +18,9 @@ __Drive number (if any):__ + __Slot number (if any):__ + + __Action:__