From: hickert Date: Tue, 10 May 2011 13:53:39 +0000 (+0000) Subject: Updated partition table editing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28847539d5f296592f3b235e4e90db3051166daa;p=gosa.git Updated partition table editing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20799 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl b/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl new file mode 100644 index 000000000..f09ce22ea --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl @@ -0,0 +1,8 @@ +{$list} + +
+
+ + +
+ diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc index 737bd02ea..daf93b626 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc @@ -223,7 +223,12 @@ class DevicePartition function execute() { $this->init(); - return($this->entryList->render()); + + + $smarty = get_smarty(); + $smarty->assign('list', $this->entryList->render()); + + return($smarty->fetch(get_template_path('goto/Device/DevicePartition.tpl', TRUE))); } function save_object() @@ -231,6 +236,11 @@ class DevicePartition } + function save() + { + return(""); + } + function __convertPartSize($size) { return($size." MB"); diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc index 1bef6aada..f1383a218 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_InstallRecipe.inc @@ -331,11 +331,20 @@ class InstallRecipe extends plugin return($smarty->fetch(get_template_path('goto/Device/SetPassword.tpl', TRUE))); } - + /*************** + Partition dialog + ***************/ + + if(isset($_POST['partition_finish']) && $this->partitionEdit){ + $this->installPartitionTable = $this->partitionEdit->save(); + $this->partitionEdit = NULL; + } + if(isset($_POST['partition_cancel']) && $this->partitionEdit){ + $this->partitionEdit = NULL; + } if(isset($_POST['edit_installPartitionTable'])){ $this->partitionEdit = new DevicePartition($this->config, $this->installPartitionTable); } - if($this->partitionEdit){ $this->partitionEdit->save_object(); $this->dialog = TRUE;