XWiki
AdminGroupsSheet
en
0
XWiki.AdminSheet
XWiki.Admin
XWiki.Admin
xwiki:XWiki.Admin
1211800831000
1267456765000
1267456765000
1.1

# AdminGroupsSheet

Imported from XAR
false
xwiki/2.0
false
{{velocity}} ### Globally administrate the groups in a wiki. #set($formname = "update") #set($saveaction = "save") ## ## Inject needed JS and CSS files ## #set($jsService = $services.javascript) #set($extJsParam = $jsService.createExtJSParam().setAction('file')) #set($extJsParam = $extJsParam.setLazyLoad(true)) $!jsService.includeExtJsFile($extJsParam.setJsFile(':js/xwiki/lightbox/lightbox.js'))## $!jsService.includeExtJsFile($extJsParam.setJsFile(':js/xwiki/usersandgroups/usersandgroups.js'))## $services.css.includeCSSPage(':js/xwiki/usersandgroups/usersandgroups.css')## $!jsService.includeExtJsFile($extJsParam.setJsFile(':js/xwiki/table/livetable.js'))## $services.css.includeCSSPage(':js/xwiki/table/livetable.css')## ## ## url to get the groups for displaying them in the ajax-based table ## #set($url = $doc.getURL('get', 'xpage=getgroups')) #if($xcontext.database != "xwiki") #set($mainwk = false) #else #set($mainwk = true) #end {{html}} <div id="xwikieditcontent"> <table id="groupstable" class="xwiki-livetable"> <tr> <td class="xwiki-livetable-pagination" colspan="2"> <span id="groupstable-limits" class="xwiki-livetable-limits"></span> <span id="groupstable-ajax-loader" class="xwiki-livetable-loader"><img src="$xwiki.getSkinFile('icons/ajax-loader.gif')" alt="$msg.get('xe.livetable.loading')" title="" />$msg.get("xe.livetable.loading")</span> <span class="pagination"> <span id="groupstable-pagination-text" class="xwiki-livetable-pagination-text">$msg.get("xe.pagination.page")</span> <span id="groupstable-pagination" class="xwiki-livetable-pagination-content" ></span> </span> </td> </tr> <tr> <td class="xwiki-livetable-display-container"> <table class="xwiki-livetable-display"> <thead class="xwiki-livetable-display-header"> <tr> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.groups.groupname")</th> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.groups.members")</th> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.groups.manage")</th> </tr> <tr id="groupstable-filters" class="xwiki-livetable-display-filters"> <td class="xwiki-livetable-display-header-filter"><label for="name" class="hidden">$msg.get("xe.admin.groups.filter.groupName")</label><input id="name" name="name" type="text" class="filter"/></td> <td class="xwiki-livetable-display-header-filter"></td> <td class="xwiki-livetable-display-header-filter"> #if (!$mainwk) <label for="wiki" class="hidden">$msg.get("xe.admin.groups.filter.scope")</label> <select name="wiki" class="filter"> <option value="local" selected="selected">$msg.get("xe.admin.groups.local")</option> <option value="global">$msg.get("xe.admin.groups.global")</option> <option value="both">$msg.get("xe.admin.groups.both")</option> </select> #else <input type="hidden" value="local" name="wiki" /> #end </td> </tr> </thead> <tbody id="groupstable-display" class="xwiki-livetable-display-body"><tr><td>&nbsp;</td></tr></tbody> </table> </td> </tr> <tr> <td id="tdAddNewUserOrGroup"> <span class="buttonwrapper"><a href="#" id="addNewGroup">$msg.get("rightsmanager.addnewgroup")</a></span> </td> </tr> </table> #set($addnewurl = $xwiki.getURL("XWiki.XWikiGroups", "view", "xpage=addnewgroup")) #set($saveurl = $xwiki.getURL("XWiki.XWikiGroups", "view")) #set($redirecturl = $xwiki.getDocument("XWiki.XWikiPreferences").getURL("admin", "editor=${editor}&section=Groups")) <script type="text/javascript"> //<![CDATA[ (function() { var startup = function() { var callback = function(row, i, table) { return displayGroups(row, i, table, "$!{services.csrf.getToken()}"); }; var ta = new XWiki.widgets.LiveTable("$url", "groupstable", callback); Event.observe($('addNewGroup'), "click", makeAddHandler("$addnewurl", "$saveurl", "$redirecturl")); } if ((typeof(XWiki) != 'undefined') && (typeof(XWiki.widgets) != 'undefined') && (typeof(XWiki.widgets.LiveTable) != 'undefined')) { startup(); } else { document.observe('xwiki:dom:loading', startup); } })(); //]]> </script> </div> ## xwikieditcontent {{/html}} {{/velocity}}