Code

Updated single user selection dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Apr 2010 06:54:19 +0000 (06:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Apr 2010 06:54:19 +0000 (06:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17682 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc
gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl
gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml

index 9cb596a73e97783a8452752b26fffb14c1800ffe..5cd22d8e0f167b24c6098e751a9101e20ae4dd21 100644 (file)
@@ -49,6 +49,14 @@ class singleUserSelect extends management
     $headpage->setFilter($filter);
     parent::__construct($config, $ui, "users", $headpage);
   }
+
+   // Inject user actions
+  function detectPostActions()
+  {
+      $action = management::detectPostActions();
+      if(isset($_POST['add_users_save'])) $action['action'] = "edit";
+      return($action);;
+  }
 } 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>
index fdd7c68827eaa3c9fd78ef09396bb9b9a39f9c6c..0bbb0ca684273c80847b23a7312821c1b18f75f1 100644 (file)
@@ -23,6 +23,7 @@
 <div class="clear"></div>
 
 <div class="plugin-actions">
+  <button type='submit' name='add_users_save'>{msgPool type=okButton}</button>
   <button type='submit' name='add_users_cancel'>{msgPool type=cancelButton}</button>
 </div>
 
index e3bd1ff4eda8ac77537ca6ef76ca179e516e1467..89e99f01c75487b276e8940909e0f884d08bfcb2 100644 (file)
@@ -5,7 +5,7 @@
     <departmentBrowser>true</departmentBrowser>
     <departmentRootVisible>false</departmentRootVisible>
     <baseMode>true</baseMode>
-    <multiSelect>false</multiSelect>
+    <singleSelect>true</singleSelect>
     <template>../plugins/admin/groups/singleUserSelect/singleUser-list.tpl</template>
     <label>Please select the desired entries</label>
     <defaultSortColumn>1</defaultSortColumn>
@@ -21,7 +21,7 @@
   </definition>
 
   <table>
-    <layout>|20px;c||||80px;r|</layout>
+    <layout>|20px;c||||</layout>
 
     <department>
       <value>%{filter:objectType(dn,objectClass)}</value>
       <export>true</export>
     </column>
 
-    <column>
-      <label>Actions</label>
-      <value>%{filter:actions(dn,row,objectClass)}</value>
-    </column>
-
-
   </table>
 
   <actionmenu>
   </actionmenu>
 
   <actiontriggers snapshot="false" copypaste="false">
-    <action>
-      <name>selectUser</name>
-      <type>entry</type>
-      <image>images/lists/edit.png</image>
-      <label>Select user</label>
-    </action>
   </actiontriggers>
 
 </list>