From: hickert Date: Wed, 27 Jan 2010 12:52:20 +0000 (+0000) Subject: Added hotplug selection dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=254e7567933822a052f9242014c7f7fe555711ac;p=gosa.git Added hotplug selection dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15370 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc b/gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc new file mode 100644 index 000000000..2c14359ba --- /dev/null +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/class_printerSelect.inc @@ -0,0 +1,64 @@ +config = $config; + $this->ui = $ui; + + $this->storagePoints = array(get_ou("deviceRDN")); + +# // Build filter +# if (session::global_is_set(get_class($this)."_filter")){ +# $filter= session::global_get(get_class($this)."_filter"); +# } else { + $filter = new filter(get_template_path("selectHotplug-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); +# } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("selectHotplug-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + parent::__construct($config, $ui, "hotplug", $headpage); + } + + function save() + { + $act = $this->detectPostActions(); + $headpage = $this->getHeadpage(); + if(!isset($act['targets'])) return(array()); + $ret = array(); + foreach($act['targets'] as $dn){ + $ret[] = $headpage->getEntry($dn); + } + return($ret); + } +} +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.tpl b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.tpl new file mode 100644 index 000000000..ba7af5cde --- /dev/null +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.tpl @@ -0,0 +1,33 @@ +
+

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

+
+ +
+ +
+ + {$SCOPE} + + + + + + +
+ + + {$NAME} +
+ + + + + +
+ {$APPLY} +
+
diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml new file mode 100644 index 000000000..ad071ab68 --- /dev/null +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml @@ -0,0 +1,40 @@ + + + + + devices + + true + + + + + LDAPBlacklist + (&(objectClass=gotoDevice)$NAME) + dn + objectClass + cn + description + + auto + + + + textfield + NAME + 20 + 60 + + + (|(cn=*$*)(description=*$*)) + true + + LDAPBlacklist + (&(objectClass=gotoDevice)(|(cn=*$NAME*)(description=*$NAME*))) + cn + 0.5 + 3 + + + + diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-list.tpl b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-list.tpl new file mode 100644 index 000000000..99a893031 --- /dev/null +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-list.tpl @@ -0,0 +1,39 @@ + + + + + + + +
+
+

 {$HEADLINE} {$SIZELIMIT}

+
+ +
+
+ + +
{$ROOT} {$BACK} {$HOME} {$RELOAD} {$SEPARATOR} {t}Base{/t} {$BASE}  {$SEPARATOR}  {$ACTIONS}
+
+
+ +
+
+ + + + {$LIST} +
+ {$FILTER} +
+ + +

+ +   + +

+ + + diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-list.xml b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-list.xml new file mode 100644 index 000000000..080ea4bd8 --- /dev/null +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-list.xml @@ -0,0 +1,66 @@ + + + + + true + false + true + true + + + 1 + + + + gotoDevice + devices + device + plugins/goto/images/select_device.png + + + + + + + + + |20px;c||| + + + %{filter:objectType(dn,objectClass)} + + + + %{filter:departmentLink(row,dn,description)} + 1 + + + + %{filter:objectType(dn,objectClass)} + + + + + cn + string + %{cn} + true + + + + + description + string + %{description} + true + + +
+ + + + + + + +