General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
AdminGroupsSheet
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
XWiki Space
»
XWiki Preferences
»
AdminSheet
»
AdminGroupsSheet
Wiki source code of
AdminGroupsSheet
Last modified by
Administrator
on 2011/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} ### Globally administrate the groups in a wiki. #set($formname = "update") #set($saveaction = "save") ## ## Inject needed JS and CSS files ## #set($ok = $xwiki.jsfx.use("js/xwiki/lightbox/lightbox.js", true)) #set($ok = $xwiki.jsfx.use("js/xwiki/usersandgroups/usersandgroups.js", true)) #set($ok = $xwiki.ssfx.use("js/xwiki/usersandgroups/usersandgroups.css", true)) #set($ok = $xwiki.jsfx.use("js/xwiki/table/livetable.js", true)) #set($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true)) ## ## 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> </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}§ion=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}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox