X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Ffai%2Fclass_faiPartitionTableEntry.inc;h=219f62da77375c70383bb6f10945fc15e8b02cdc;hb=ca98ca8c7d1adccfcf78ccc86faa5d9e2d69967e;hp=278b498f634ce95722b27f984787f97df380397b;hpb=da39a6912ead68f8f8707e5c06bc0382d31fd242;p=gosa.git diff --git a/plugins/admin/fai/class_faiPartitionTableEntry.inc b/plugins/admin/fai/class_faiPartitionTableEntry.inc index 278b498f6..219f62da7 100644 --- a/plugins/admin/fai/class_faiPartitionTableEntry.inc +++ b/plugins/admin/fai/class_faiPartitionTableEntry.inc @@ -81,6 +81,9 @@ class faiPartitionTableEntry extends plugin function execute() { + /* Call parent execute */ + plugin::execute(); + /* Fill templating stuff */ $smarty = get_smarty(); $s_action = ""; @@ -129,7 +132,6 @@ class faiPartitionTableEntry extends plugin $this->partitions = $tmp; } - /* To add a partitions we only append an empty * array to the already defined partitions. */ @@ -168,10 +170,10 @@ class faiPartitionTableEntry extends plugin { /* Define Arrays with allowed syntax */ $PartitionTypes = array("primary","logical"); - $FAIfsTypes = array("ext2","ext3","xfs","swap","reiserfs","dos fat 16","win fat 32"); + $FAIfsTypes = array("ext2","ext3","xfs","swap","reiserfs","dosfat16","winfat32"); /* Display Header */ - $str = "
"._("Type")." | "; @@ -191,10 +193,16 @@ class faiPartitionTableEntry extends plugin * To be able to check the posts later, we append a key to each single postfield. like cn_1 ... cn_2 */ foreach($this->partitions as $key => $part){ + + $dis = ""; + if($part['FAIpartitionFlags'] == "preserve"){ + $dis = " disabled "; + } + if($part['status']!="delete"){ /* Generate Partition select box */ - $PartitionType = "