2006-08-14 17:40:12 +02:00
|
|
|
<?cs # $Id$ ?>
|
|
|
|
|
2006-09-07 13:21:56 +02:00
|
|
|
<?cs if:Data.activeDisksCount == 0 ?>
|
2006-08-14 17:40:12 +02:00
|
|
|
|
|
|
|
<?cs call:warning('NoDiskAvailableForUmount') ?>
|
|
|
|
|
|
|
|
<?cs else ?>
|
|
|
|
|
|
|
|
<h1><?cs var:html_escape(Lang.Title.Umount) ?></h1>
|
|
|
|
|
|
|
|
<div align="center">
|
2006-09-07 13:21:56 +02:00
|
|
|
<?cs call:print_form_header("umount_do") ?>
|
2006-08-14 17:40:12 +02:00
|
|
|
|
2006-09-07 13:21:56 +02:00
|
|
|
<?cs if:Data.activeDisksCount > 1 ?>
|
2006-08-14 17:40:12 +02:00
|
|
|
<p><label for="device"><?cs var:html_escape(Lang.Text.ChoosePartition) ?></label>
|
|
|
|
<select name="device" id="device" size="0">
|
2006-09-07 13:21:56 +02:00
|
|
|
<?cs each:partition = Data.Disks
|
|
|
|
?><?cs if:partition.active ?><option value="<?cs
|
2006-08-14 17:40:12 +02:00
|
|
|
var:partition.device ?>"><?cs
|
2006-09-07 13:21:56 +02:00
|
|
|
var:partition.name ?></option><?cs /if ?>
|
2006-08-14 17:40:12 +02:00
|
|
|
<?cs /each ?>
|
|
|
|
</select></p>
|
|
|
|
<?cs else ?>
|
|
|
|
<?cs # the perl code should take care, that there is at least
|
|
|
|
one mounted disk - otherwise it should display a warning ?>
|
2006-09-07 13:21:56 +02:00
|
|
|
<?cs each:partition = Data.Disks ?><?cs
|
|
|
|
if:partition.active ?><?cs set:act_name = partition.name ?><?cs
|
|
|
|
act_device = partition.device ?><?cs /if ?><?cs /each ?>
|
2006-08-14 17:40:12 +02:00
|
|
|
<p><?cs var:html_escape(Lang.Text.ChosenPartition) ?>: <?cs
|
2006-09-07 13:21:56 +02:00
|
|
|
var:act_name ?></p>
|
2006-08-14 17:40:12 +02:00
|
|
|
<input type="hidden" name="device" value="<?cs
|
2006-09-07 13:21:56 +02:00
|
|
|
var:act_device ?>"/>
|
2006-08-14 17:40:12 +02:00
|
|
|
<?cs /if ?>
|
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Button.Umount) ?></button>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?cs /if ?>
|
|
|
|
|