From 06c32627b2f837000d47b1f2a425faff0e73a087 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Dec 2008 10:53:26 +0000 Subject: [PATCH] Updatd FAI listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13140 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../fai/admin/fai/class_divListFai.inc | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc index 8f3a594ce..742a20285 100644 --- a/gosa-plugins/fai/admin/fai/class_divListFai.inc +++ b/gosa-plugins/fai/admin/fai/class_divListFai.inc @@ -246,31 +246,44 @@ class divListFai extends MultiSelectWindow $name = ""; $name = ""; $icon_list = ""; + $opsi_only = TRUE; foreach($objects as $type => $type_data){ if(isset($value[$type])){ $name = $value[$type]['cn']; $icon_list .= "\n"; $cnts[$type] ++; + if(!in_array($type,array("opsi_local","opsi_netboot"))){ + $opsi_only = FALSE; + } }else{ $icon_list .= " \n"; } } + /* Create checkbox + */ + $checkbox = " "; + if(!$opsi_only){ + $checkbox = ""; + } + /* Create actions string */ $actions = ""; - $actions.= ""; - $actions.= ""; - + if(!$opsi_only){ + $actions.= ""; + }else{ + $actions.= " "; + } /* Create list */ $field1 = array( - "string" => "" , + "string" => $checkbox , "attach" => "style='width:20px;'"); $field2 = array( "string" => $name, -- 2.30.2