From 63592930e4998167589d8e0d93ce63109eacf359 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Jan 2010 15:17:18 +0000 Subject: [PATCH] Updated FAI git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15110 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_systemManagement.inc | 51 +++---- .../systems/admin/systems/system-filter.tpl | 62 ++++++++ .../systems/admin/systems/system-filter.xml | 113 ++++++++++++++ .../systems/admin/systems/system-list.tpl | 31 ++++ .../systems/admin/systems/system-list.xml | 143 ++++++++++++++++++ 5 files changed, 374 insertions(+), 26 deletions(-) create mode 100644 gosa-plugins/systems/admin/systems/system-filter.tpl create mode 100644 gosa-plugins/systems/admin/systems/system-filter.xml create mode 100644 gosa-plugins/systems/admin/systems/system-list.tpl create mode 100644 gosa-plugins/systems/admin/systems/system-list.xml diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 5f40cfe1b..5128ca66d 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -71,28 +71,29 @@ class systemManagement extends management if($this->config->get_cfg_value("enableSnapshots") == "true"){ $this->snapHandler = new SnapshotHandler($this->config); } - parent::__construct($config, $ui, "roles", $headpage); + parent::__construct($config, $ui, "systems", $headpage); } - /*! \brief Overridden render method of class mangement. - * this allows us to add a release selection box. - */ - function renderList() - { - $headpage = $this->getHeadpage(); - - $tD = $this->getObjectDefinitions(); - $smarty = get_smarty(); - foreach($tD as $name => $obj){ -# $smarty->assign("USE_".$name, (empty($obj['CLASS']) || class_available($obj['CLASS']))); - } + /*! \brief Overridden render method of class mangement. + * this allows us to add a release selection box. + */ +function renderList() +{ + $headpage = $this->getHeadpage(); + $headpage->update(); - $display = $headpage->render(); - return($this->getHeader().$display); + $tD = $this->getObjectDefinitions(); + $smarty = get_smarty(); + foreach($tD as $name => $obj){ + $smarty->assign("USE_".$name, (empty($obj['TABNAME']) || class_available($obj['TABNAME']))); } + $display = $headpage->render(); + return($this->getHeader().$display); +} + public function getObjectDefinitions() { @@ -175,17 +176,15 @@ class systemManagement extends management "TABNAME" => "componentGeneric", "TABCLASS"=> "componenttabs", "ACLC" => "component", - "ACL" => "component/componentGeneric")); - - if($this->opsi != NULL){ - $tabs["opsi_client"] = array( - "RDN" => "", - "CLASS" => "OPSITABS", - "TABNAME" => "opsiGeneric" , - "TABCLASS"=> "opsi_tabs", - "ACLC" => "opsi" , - "ACL" => "opsi/opsiGeneric"); - } + "ACL" => "component/componentGeneric"), + + "opsi_client" => array( + "RDN" => "", + "CLASS" => "OPSITABS", + "TABNAME" => "opsiGeneric" , + "TABCLASS"=> "opsi_tabs", + "ACLC" => "opsi" , + "ACL" => "opsi/opsiGeneric")); return($tabs); } diff --git a/gosa-plugins/systems/admin/systems/system-filter.tpl b/gosa-plugins/systems/admin/systems/system-filter.tpl new file mode 100644 index 000000000..4586cb3ff --- /dev/null +++ b/gosa-plugins/systems/admin/systems/system-filter.tpl @@ -0,0 +1,62 @@ +
+

+ [F]{t}Filter{/t} +

+
+ +
+
+ + {if $USE_server} + {$SERVER} {t}Show servers{/t}
+ {/if} + {if $USE_workstation} + {$WORKSTATION} {t}Show workstations{/t}
+ {/if} + {if $USE_terminal} + {$TERMINAL} {t}Show terminals{/t}
+ {/if} + {if $USE_printer} + {$PRINTER} {t}Show printer{/t}
+ {/if} + {if $USE_phone} + {$PHONE} {t}Show phones{/t}
+ {/if} + {if $USE_winstation} + {$WINSTATION} {t}Show windows workstations{/t}
+ {/if} + {if $USE_component} + {$COMPONENT} {t}Show network devices{/t}
+ {/if} + {if $USE_incoming} + {$INCOMING} {t}Show incoming devices{/t}
+ {/if} + {if $USE_opsi_client} + {$OPSI} {t}Show opsi hosts{/t}
+ {/if} + +
+ + {$SCOPE} + + + + + + +
+ + + {$NAME} +
+ + + + + +
+ {$APPLY} +
+
diff --git a/gosa-plugins/systems/admin/systems/system-filter.xml b/gosa-plugins/systems/admin/systems/system-filter.xml new file mode 100644 index 000000000..d1e73ab14 --- /dev/null +++ b/gosa-plugins/systems/admin/systems/system-filter.xml @@ -0,0 +1,113 @@ + + + + + roles + + true + + + + + LDAP + (&(|$SERVER(objectClass=goServer))$NAME) + dn + objectClass + cn + description + + auto + + + + checkbox + SERVER + true + + (objectClass=goServer) + + + + checkbox + WORKSTATION + true + + (objectClass=goWorkstation) + + + + checkbox + TERMINAL + true + + (objectClass=goWorkstation) + + + + checkbox + PRINTER + true + + (objectClass=goWorkstation) + + + + checkbox + PHONE + true + + (objectClass=goWorkstation) + + + + checkbox + WINSTATION + true + + (objectClass=goWorkstation) + + + + checkbox + COMPONENT + true + + (objectClass=goWorkstation) + + + + checkbox + INCOMING + true + + (objectClass=goWorkstation) + + + + + checkbox + OPSI + true + + (objectClass=goWorkstation) + + + + textfield + NAME + 20 + 60 + + + (cn=*$*) + false + + LDAP + (&(objectClass=organizationalRole)(cn=*$NAME*)) + cn + 0.5 + 3 + + + + diff --git a/gosa-plugins/systems/admin/systems/system-list.tpl b/gosa-plugins/systems/admin/systems/system-list.tpl new file mode 100644 index 000000000..b233c5874 --- /dev/null +++ b/gosa-plugins/systems/admin/systems/system-list.tpl @@ -0,0 +1,31 @@ + + + + + + + +
+
+

 {$HEADLINE} {$SIZELIMIT}

+
+ +
+
+ + +
{$ROOT} {$BACK} {$HOME} {$RELOAD} {$SEPARATOR} {t}Base{/t} {$BASE}  {$SEPARATOR}  {$ACTIONS}
+
+
+ +
+
+ + + + {$LIST} +
+ {$FILTER} +
+ + diff --git a/gosa-plugins/systems/admin/systems/system-list.xml b/gosa-plugins/systems/admin/systems/system-list.xml new file mode 100644 index 000000000..121afa22d --- /dev/null +++ b/gosa-plugins/systems/admin/systems/system-list.xml @@ -0,0 +1,143 @@ + + + + + true + false + true + true + + roles + + 1 + + + + organizationalRole + roles + role + plugins/rolemanagement/images/role.png + + + + + + |20px;c||250px|170px;r| + + + %{filter:objectType(dn,objectClass)} + + + + %{filter:departmentLink(row,dn,description)} + 2 + + + + %{filter:objectType(dn,objectClass)} + + + + + cn + string + %{filter:link(row,dn,"%s",cn)} + true + + + + + description + string + %{filter:link(row,dn,"%s",description)} + true + + + + + %{filter:actions(dn,row,objectClass)} + + +
+ + + + + sub + images/lists/new.png + + + + new + entry + plugins/rolemanagement/images/new.png + + + + + + separator + + + + edit + entry + images/lists/edit.png + + + + + remove + entry + images/lists/trash.png + + + + + exporter + + + + separator + + + + copypaste + + + + snapshot + + + + + + + + cp + copypaste + + + + edit + entry + images/lists/edit.png + + + + + snapshot + snapshot + + + + remove + entry + images/lists/trash.png + roles/role[d] + + + + + +
-- 2.30.2