From fcd39299d6003be6631ef83df12ce4c0ab3a4945 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Jan 2010 12:43:10 +0000 Subject: [PATCH] Updated user group selection dialog from sudo plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15233 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../sudo/admin/sudo/selectUser-filter.tpl | 37 +++++++++ .../sudo/admin/sudo/selectUser-filter.xml | 60 ++++++++++++++ .../sudo/admin/sudo/selectUser-list.tpl | 31 ++++++++ .../sudo/admin/sudo/selectUser-list.xml | 78 +++++++++++++++++++ 4 files changed, 206 insertions(+) create mode 100644 gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl create mode 100644 gosa-plugins/sudo/admin/sudo/selectUser-filter.xml create mode 100644 gosa-plugins/sudo/admin/sudo/selectUser-list.tpl create mode 100644 gosa-plugins/sudo/admin/sudo/selectUser-list.xml diff --git a/gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl b/gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl new file mode 100644 index 000000000..e1016c059 --- /dev/null +++ b/gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl @@ -0,0 +1,37 @@ +
+

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

+
+ +
+ +
+ +{$USER} 
+{$GROUP} 
+ +
+ {$SCOPE} + + + + + + +
+ + + {$NAME} +
+ + + + + +
+ {$APPLY} +
+
diff --git a/gosa-plugins/sudo/admin/sudo/selectUser-filter.xml b/gosa-plugins/sudo/admin/sudo/selectUser-filter.xml new file mode 100644 index 000000000..c0f7c5132 --- /dev/null +++ b/gosa-plugins/sudo/admin/sudo/selectUser-filter.xml @@ -0,0 +1,60 @@ + + + + + users + + true + + + + + LDAP + (&(|$USER $GROUP ) $NAME) + dn + objectClass + cn + sn + uid + givenName + description + userPassword + + auto + + + + textfield + NAME + 20 + 60 + + + (|(cn=*$*)(sn=*$*)(givenName=*$*)) + true + + LDAP + (&(objectClass=gosaAccount)(|(cn=*$NAME*)(sn=*$NAME*)(givenName=*$NAME*))) + cn + 0.5 + 3 + + + + + checkbox + USER + true + (&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))) + + + + + checkbox + GROUP + true + + (objectClass=posixGroup) + + + diff --git a/gosa-plugins/sudo/admin/sudo/selectUser-list.tpl b/gosa-plugins/sudo/admin/sudo/selectUser-list.tpl new file mode 100644 index 000000000..b233c5874 --- /dev/null +++ b/gosa-plugins/sudo/admin/sudo/selectUser-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/sudo/admin/sudo/selectUser-list.xml b/gosa-plugins/sudo/admin/sudo/selectUser-list.xml new file mode 100644 index 000000000..c4b2acd07 --- /dev/null +++ b/gosa-plugins/sudo/admin/sudo/selectUser-list.xml @@ -0,0 +1,78 @@ + + + + + true + false + true + true + + users + + 1 + + + + gosaAccount + users + user + plugins/users/images/select_user.png + + + + + posixGroup + groups + group + plugins/groups/images/groups.png + + + + + + |20px;c|220px|| + + + %{filter:objectType(dn,objectClass)} + + + + %{filter:departmentLink(row,dn,description)} + 1 + + + + %{filter:objectType(dn,objectClass)} + + + + + cn + string + %{cn} + true + + + + + description + string + %{description} + true + + +
+ + + + + + + edit + entry + gosaAccount + images/lists/edit.png + + + +
-- 2.30.2