summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a75b26d)
raw | patch | inline | side by side (parent: a75b26d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 19 Apr 2010 06:54:19 +0000 (06:54 +0000) | ||
committer | hickert <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
diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc
index 9cb596a73e97783a8452752b26fffb14c1800ffe..5cd22d8e0f167b24c6098e751a9101e20ae4dd21 100644 (file)
$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:
?>
diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.tpl
index fdd7c68827eaa3c9fd78ef09396bb9b9a39f9c6c..0bbb0ca684273c80847b23a7312821c1b18f75f1 100644 (file)
<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>
diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml b/gosa-core/plugins/admin/groups/singleUserSelect/singleUser-list.xml
index e3bd1ff4eda8ac77537ca6ef76ca179e516e1467..89e99f01c75487b276e8940909e0f884d08bfcb2 100644 (file)
<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>
</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>