lars
de3280806f
plugin interface changed ("prepareForm" removed) plugins do not raise exceptions anymore first part of the partitioning plugin device-specific stuff moved to CryptoBoxTools
37 lines
1.7 KiB
C#
37 lines
1.7 KiB
C#
<?cs # $Id$ ?>
|
|
|
|
<h1><?cs var:html_escape(Lang.Plugins.partition.Title.Partition) ?></h1>
|
|
|
|
<p> <?cs loop: x = #0, subcount(Data.Plugins.partition.Parts)-1, #1 ?>
|
|
<p><?cs var:x ?> - <?cs var:Data.Plugins.partition.Parts[x].Size ?> - <?cs var:Data.Plugins.partition.Parts[x].Type ?></p><?cs
|
|
/loop ?></p>
|
|
|
|
<?cs if:Data.Plugins.partition.availSize ?>
|
|
<?cs call:print_form_header("plugins/partition") ?>
|
|
<?cs include:Settings.PluginDir + "/partition/current_partition_info.cs" ?><?cs
|
|
|
|
# new partition input if space is available ?><?cs
|
|
set: x = subcount(Data.Plugins.partition.Parts) ?>
|
|
<p><?cs var:x ?> - <input type="text" name="part<?cs var:x ?>_size" value="<?cs var:Data.Plugins.partition.availSize ?>" /> - <select name="part<?cs var:x ?>_type" size="0"><?cs each: t = Data.Plugins.partition.Types ?><option><?cs var:t ?></option><?cs /each ?></select></p>
|
|
|
|
<input type="hidden" name="step" value="add_partition" />
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.partition.Button.AddPartition) ?></button>
|
|
</form>
|
|
<?cs /if ?>
|
|
|
|
<?cs if:subcount(Data.Plugins.partition.Parts) > 0 ?>
|
|
<?cs call:print_form_header("plugins/partition") ?>
|
|
<?cs include:Settings.PluginDir + "/partition/current_partition_info.cs" ?>
|
|
<input type="hidden" name="step" value="del_partition" />
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.partition.Button.Back) ?></button>
|
|
</form>
|
|
<?cs /if ?>
|
|
|
|
<?cs if:subcount(Data.Plugins.partition.Parts) > 0 ?>
|
|
<?cs call:print_form_header("plugins/partition") ?>
|
|
<?cs include:Settings.PluginDir + "/partition/current_partition_info.cs" ?>
|
|
<input type="hidden" name="step" value="finish" />
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.partition.Button.SavePartitions) ?></button>
|
|
</form>
|
|
<?cs /if ?>
|
|
|