Code

Updated user management
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Mar 2008 15:48:44 +0000 (15:48 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Mar 2008 15:48:44 +0000 (15:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10096 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index cc9ba18c8d6a1bb4d4401dd501243b4278307ba0..7f20a5bd38a1be9367130544820ec61423cd0125 100644 (file)
@@ -436,8 +436,16 @@ class userManagement extends plugin
       session::un_set('objectinfo');
     }
 
-    /* Apply templates */
-    if ($s_action=="templatize_multiple"){
+
+    /********************
+      Apply template to multiple entries requested, display confirm dialog
+     ********************/
+    # TODO: show dialog to choose
+    #       * template
+    #       * when the template is choosen refresh the list of
+    #         available attributes with a checkbox - everything checked
+    #       * when pressing apply do the stuff below
+    if ($s_action=="ttemplatize_multiple"){
       $ids = $this->list_get_selected_items();
       $this->dns = array();
       if(count($ids)){
@@ -458,13 +466,14 @@ class userManagement extends plugin
         $template_dn= "cn=super44 super44,ou=people,dc=gonicus,dc=de";
         $usertab= new usertabs($this->config, $this->config->data['TABS']['USERTABS'], $dn);
         $usertab->adapt_from_template($template_dn, array("sn", "givenName", "uid"));
-        #$usertab->save();
+        $usertab->save();
         unset ($usertab);
         $usertab= NULL;
       }
 
     }
 
+
     /********************
       Delete MULTIPLE entries requested, display confirm dialog
      ********************/