From: hickert Date: Wed, 11 May 2011 07:45:57 +0000 (+0000) Subject: Added classes to add new patitions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e102c0c09ccbe45bf66bc2c1107cad087cb3aa8a;p=gosa.git Added classes to add new patitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20800 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl b/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl new file mode 100644 index 000000000..8bd6648ed --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/Device/AddPartitionDialog.tpl @@ -0,0 +1 @@ +asdf diff --git a/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl b/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl index f09ce22ea..acc2cd0ae 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl +++ b/gosa-plugins/goto/admin/systems/goto/Device/DevicePartition.tpl @@ -1,5 +1,9 @@ {$list} + + +
+
diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc new file mode 100644 index 000000000..abfc5b51f --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_AddPartitionDialog.inc @@ -0,0 +1,28 @@ +partitionObject = &$partitionObject; + $this->config = &$config; + } + + function execute() + { + $smarty = get_smarty(); + + return(get_template_path("goto/Device/AddPartitionDialog.tpl", TRUE)); + } + + function save_object() + { + } + + function save() + { + } +} +?> 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 daf93b626..eaf11db87 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc @@ -7,6 +7,8 @@ class DevicePartition public $object =NULL; public $partitionString =NULL; + public $addDialog = NULL; + function __construct($config, $partitionString) { $this->config = &$config; @@ -222,6 +224,21 @@ class DevicePartition function execute() { + if(isset($_POST['create_partition'])){ + $this->addDialog = new AddPartitionDialog($this->config, $this->object); + } + if(isset($_POST['cancel_partition_add'])){ + $this->addDialog = NULL; + } + if(isset($_POST['save_partition_add'])){ + $this->addDialog = NULL; + } + if($this->addDialog){ + $this->addDialog->save_object(); + return($this->addDialog->execute()); + } + + $this->init();