2 # Show a form for editing a filesystem or adding one
4 require './zones-lib.pl';
7 $zinfo = &get_zone($in{'zone'});
8 $zinfo || &error($text{'edit_egone'});
10 # Find the filesystem object
11 ($fs) = grep { $_->{'dir'} eq $in{'old'} } @{$zinfo->{'fs'}};
12 $fs || &error($text{'fs_egone'});
14 $p = new Webmin::Page(&zone_title($in{'zone'}),
15 $in{'new'} ? $text{'fs_title1'} : $text{'fs_title2'}, "fs");
16 $type = $in{'type'} || $fs->{'type'};
17 $p->add_form(&get_fs_form(\%in, $zinfo, $fs, $type));
18 $p->add_footer("edit_zone.cgi?zone=$in{'zone'}", $text{'edit_return'});