From: cajus
Date: Fri, 10 Jul 2009 07:25:09 +0000 (+0000)
Subject: Toggle buttons and checkbox accordingly. So the disk headpage may be ready. Go for...
X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=09894ef24cf616b293b83573884fc2216fd9af9d;p=gosa.git
Toggle buttons and checkbox accordingly. So the disk headpage may be ready. Go for the partitions, volgroups and raids of the world...
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13918 594d385d-05f5-0310-b6e9-bd551577e9d8
---
diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
index 7dad1c3fa..de7f3cdc6 100644
--- a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
+++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
@@ -339,10 +339,21 @@ class faiPartitionTable extends plugin
/* Assign mode */
if ($this->FAIpartitionMethod == ""){
$smarty->assign("mode", "");
+ $smarty->assign("storage_mode", "disabled");
} else {
$smarty->assign("mode", "checked");
+ $smarty->assign("storage_mode", "");
+ }
+ if (!count($this->disks)) {
+ $smarty->assign("lockmode", "");
+ } else {
+ $smarty->assign("lockmode", "disabled");
+ }
+ if (isset($this->disks['raid'])){
+ $smarty->assign("addraid", "disabled");
+ } else {
+ $smarty->assign("addraid", "");
}
- $smarty->assign("lockmode", "disabled");
/* Divlist containing disks */
$divlist = new divSelectBox("FAItemplates");
diff --git a/gosa-plugins/fai/admin/fai/faiPartitionTable.tpl b/gosa-plugins/fai/admin/fai/faiPartitionTable.tpl
index e1520757b..d7ff43f58 100644
--- a/gosa-plugins/fai/admin/fai/faiPartitionTable.tpl
+++ b/gosa-plugins/fai/admin/fai/faiPartitionTable.tpl
@@ -30,7 +30,7 @@
- {t}Use 'setup-storage' to partition the disk{/t}
+ {t}Use 'setup-storage' to partition the disk{/t}
@@ -44,8 +44,8 @@
{$Entry_divlist}
{if $sub_object_is_addable}
-
-
+
+
{else}
|