From: hickert Date: Wed, 27 Jan 2010 09:51:57 +0000 (+0000) Subject: Moved dialogs to their logical parent plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd8dc27d9d1b40aa88b90259eb8c16b1c4aa6848;p=gosa.git Moved dialogs to their logical parent plugin -UserGroup select dialog to admin/groups -System select dialog to systems/goto git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15357 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc b/gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc deleted file mode 100644 index 80e63c7a9..000000000 --- a/gosa-plugins/sudo/admin/sudo/class_target_list_systems.inc +++ /dev/null @@ -1,77 +0,0 @@ -config = $config; - $this->ui = $ui; - $this->storagePoints = array(get_ou("serverRDN"), get_ou("workstationRDN"), get_ou('terminalRDN')); - -# // 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("selectSystem-filter.xml", true)); - $filter->setObjectStorage($this->storagePoints); -# } - $this->setFilter($filter); - - // Build headpage - $headpage = new listing(get_template_path("selectSystem-list.xml", true)); - $headpage->setFilter($filter); - parent::__construct($config, $ui, "object", $headpage); - } - - function save_object() {} - - function execute() - { - $str = management::execute(); - $str.= "

 

-

- -   - -

"; - return($str); - } - - 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/sudo/admin/sudo/class_target_list_users.inc b/gosa-plugins/sudo/admin/sudo/class_target_list_users.inc deleted file mode 100644 index 4fc798179..000000000 --- a/gosa-plugins/sudo/admin/sudo/class_target_list_users.inc +++ /dev/null @@ -1,77 +0,0 @@ -config = $config; - $this->ui = $ui; - $this->storagePoints = array(get_ou("userRDN"), get_ou("groupRDN")); - -# // 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("selectUser-filter.xml", true)); - $filter->setObjectStorage($this->storagePoints); -# } - $this->setFilter($filter); - - // Build headpage - $headpage = new listing(get_template_path("selectUser-list.xml", true)); - $headpage->setFilter($filter); - parent::__construct($config, $ui, "object", $headpage); - } - - function save_object() {} - - function execute() - { - $str = management::execute(); - $str.= "

 

-

- -   - -

"; - return($str); - } - - 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/sudo/admin/sudo/selectSystem-filter.tpl b/gosa-plugins/sudo/admin/sudo/selectSystem-filter.tpl deleted file mode 100644 index 2f09c5868..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectSystem-filter.tpl +++ /dev/null @@ -1,38 +0,0 @@ -
-

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

-
- -
- -
- - {$SERVER} 
- {$WORKSTATION} 
- {$TERMINAL} 
- -
- {$SCOPE} - - - - - - -
- - - {$NAME} -
- - - - - -
- {$APPLY} -
-
diff --git a/gosa-plugins/sudo/admin/sudo/selectSystem-filter.xml b/gosa-plugins/sudo/admin/sudo/selectSystem-filter.xml deleted file mode 100644 index 6677db548..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectSystem-filter.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - server - - true - - - - - LDAP - (&(|$SERVER $WORKSTATION $TERMINAL ) $NAME) - dn - objectClass - cn - description - - auto - - - - textfield - NAME - 20 - 60 - - - (cn=*$*) - true - - LDAP - (cn=*$NAME*) - cn - 0.5 - 3 - - - - - checkbox - SERVER - true - (objectClass=goServer) - - - - - checkbox - WORKSTATION - true - - (objectClass=gotoWorkstation) - - - - checkbox - TERMINAL - true - - (objectClass=gotoTerminal) - - - diff --git a/gosa-plugins/sudo/admin/sudo/selectSystem-list.tpl b/gosa-plugins/sudo/admin/sudo/selectSystem-list.tpl deleted file mode 100644 index b233c5874..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectSystem-list.tpl +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - -
-
-

 {$HEADLINE} {$SIZELIMIT}

-
- -
-
- - -
{$ROOT} {$BACK} {$HOME} {$RELOAD} {$SEPARATOR} {t}Base{/t} {$BASE}  {$SEPARATOR}  {$ACTIONS}
-
-
- -
-
- - - - {$LIST} -
- {$FILTER} -
- - diff --git a/gosa-plugins/sudo/admin/sudo/selectSystem-list.xml b/gosa-plugins/sudo/admin/sudo/selectSystem-list.xml deleted file mode 100644 index 0fa7b886b..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectSystem-list.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - true - false - true - true - - server - - 1 - - - - goServer - server - servgeneric - plugins/systems/images/select_server.png - - - - - gotoWorkstation - workstation - workgeneric - plugins/systems/images/select_workstation.png - - - - - gotoTerminal - terminal - termgeneric - plugins/systems/images/select_terminal.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 - - -
- - - - - - -
diff --git a/gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl b/gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl deleted file mode 100644 index e1016c059..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectUser-filter.tpl +++ /dev/null @@ -1,37 +0,0 @@ -
-

- [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 deleted file mode 100644 index c0f7c5132..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectUser-filter.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 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 deleted file mode 100644 index b233c5874..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectUser-list.tpl +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - -
-
-

 {$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 deleted file mode 100644 index c4b2acd07..000000000 --- a/gosa-plugins/sudo/admin/sudo/selectUser-list.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - 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 - - - -