Handle hostnames with upper-case letters
[webmin.git] / bacula-backup / mount_form.cgi
1 #!/usr/local/bin/perl
2 # Show a form for mounting or un-mounting one volume
3
4 require './bacula-backup-lib.pl';
5 &ui_print_header(undef,  $text{'mount_title'}, "", "mount");
6
7 print &ui_form_start("mount.cgi", "post");
8 print &ui_table_start($text{'mount_header'}, undef, 2);
9
10 # Storage to mount
11 @storages = sort { lc($a->{'name'}) cmp lc($b->{'name'}) }
12                  &get_bacula_storages();
13 print &ui_table_row($text{'mount_storage'},
14         &ui_select("storage", $in{'storage'},
15          [ map { [ $_->{'name'},
16                    &text('clientstatus_on', $_->{'name'}, $_->{'address'}) ] }
17            @storages ]));
18
19 # Autoloader slot
20 print &ui_table_row($text{'mount_slot'},
21         &ui_opt_textbox("slot", undef, 5, $text{'mount_noslot'},
22                         $text{'mount_slotno'}));
23
24 print &ui_table_end();
25 print &ui_form_end([ [ 'mount', $text{'mount_mount'} ],
26                      [ 'unmount', $text{'mount_unmount'} ] ]);
27
28 &ui_print_footer("", $text{'index_return'});