From 5faac73a0bfe833f139eefdc8569788be327b25d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Feb 2010 12:56:01 +0000 Subject: [PATCH] Added selectSingleUser dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15674 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_singleUserSelect.inc | 52 +++++++++++ .../singleUserSelect/singleUser-filter.tpl | 33 +++++++ .../singleUserSelect/singleUser-filter.xml | 43 +++++++++ .../singleUserSelect/singleUser-list.tpl | 34 +++++++ .../singleUserSelect/singleUser-list.xml | 89 +++++++++++++++++++ 5 files changed, 251 insertions(+) create mode 100644 gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc create mode 100644 gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.tpl create mode 100644 gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.xml create mode 100644 gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl create mode 100644 gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc new file mode 100644 index 000000000..429861649 --- /dev/null +++ b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc @@ -0,0 +1,52 @@ +config = $config; + $this->ui = $ui; + + $this->storagePoints = array(get_ou("userRDN")); + +# // 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("singleUser-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); +# } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("singleUser-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + parent::__construct($config, $ui, "users", $headpage); + } +} +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.tpl b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.tpl new file mode 100644 index 000000000..ba7af5cde --- /dev/null +++ b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.tpl @@ -0,0 +1,33 @@ +
+

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

+
+ +
+ +
+ + {$SCOPE} + + + + + + +
+ + + {$NAME} +
+ + + + + +
+ {$APPLY} +
+
diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.xml b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.xml new file mode 100644 index 000000000..efbdfb874 --- /dev/null +++ b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-filter.xml @@ -0,0 +1,43 @@ + + + + + groups + + true + + + + + LDAPBlacklist + (&(objectClass=posixAccount)$NAME) + dn + objectClass + cn + sn + givenName + uid + description + + auto + + + + textfield + NAME + 20 + 60 + + + (|(sn=*$*)(givenName=*$*)(cn=*$*)(uid=*$*)) + true + + LDAPBlacklist + (&(objectClass=posixAccount)(|(sn=*$NAME*)(givenName=*$NAME*)(cn=*$NAME*)(uid=*$NAME*))) + cn + 0.5 + 3 + + + + diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl new file mode 100644 index 000000000..a3466f742 --- /dev/null +++ b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl @@ -0,0 +1,34 @@ + + + + + + + +
+
+

 {$HEADLINE} {$SIZELIMIT}

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

+ +   + +

+ + diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml new file mode 100644 index 000000000..79c63c76c --- /dev/null +++ b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml @@ -0,0 +1,89 @@ + + + + + true + false + true + false + + + 1 + + + + gosaAccount + users + user + plugins/users/images/select_user.png + + + + + + |20px;c||||80px;r| + + + %{filter:objectType(dn,objectClass)} + + + + %{filter:departmentLink(row,dn,description)} + 1 + + + + %{filter:objectType(dn,objectClass)} + + + + + givenName + string + %{givenName} + true + + + + + sn + string + %{sn} + true + + + + + uid + string + %{uid} + true + + + + + %{filter:actions(dn,row,objectClass)} + + + +
+ + + + + + + selectUser + entry + images/empty.png + + + + selectUser + entry + images/lists/edit.png + + + + +
-- 2.30.2