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
Hide line numbers
1: {{velocity}} 2: ### Globally administrate the groups in a wiki. 3: #set($formname = "update") 4: #set($saveaction = "save") 5: ## 6: ## Inject needed JS and CSS files 7: ## 8: #set($ok = $xwiki.jsfx.use("js/xwiki/lightbox/lightbox.js", true)) 9: #set($ok = $xwiki.jsfx.use("js/xwiki/usersandgroups/usersandgroups.js", true)) 10: #set($ok = $xwiki.ssfx.use("js/xwiki/usersandgroups/usersandgroups.css", true)) 11: #set($ok = $xwiki.jsfx.use("js/xwiki/table/livetable.js", true)) 12: #set($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true)) 13: ## 14: ## url to get the groups for displaying them in the ajax-based table 15: ## 16: #set($url = $doc.getURL('get', 'xpage=getgroups')) 17: #if($xcontext.database != "xwiki") 18: #set($mainwk = false) 19: #else 20: #set($mainwk = true) 21: #end 22: {{html}} 23: <div id="xwikieditcontent"> 24: <table id="groupstable" class="xwiki-livetable"> 25: <tr> 26: <td class="xwiki-livetable-pagination" colspan="2"> 27: <span id="groupstable-limits" class="xwiki-livetable-limits"></span> 28: <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> 29: <span class="pagination"> 30: <span id="groupstable-pagination-text" class="xwiki-livetable-pagination-text">$msg.get("xe.pagination.page")</span> 31: <span id="groupstable-pagination" class="xwiki-livetable-pagination-content" ></span> 32: </span> 33: </td> 34: </tr> 35: <tr> 36: <td class="xwiki-livetable-display-container"> 37: <table class="xwiki-livetable-display"> 38: <thead class="xwiki-livetable-display-header"> 39: <tr> 40: <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.groups.groupname")</th> 41: <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.groups.members")</th> 42: <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.groups.manage")</th> 43: </tr> 44: <tr id="groupstable-filters" class="xwiki-livetable-display-filters"> 45: <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> 46: <td class="xwiki-livetable-display-header-filter"></td> 47: <td class="xwiki-livetable-display-header-filter"> 48: #if (!$mainwk) 49: <label for="wiki" class="hidden">$msg.get("xe.admin.groups.filter.scope")</label> 50: <select name="wiki" class="filter"> 51: <option value="local" selected="selected">$msg.get("xe.admin.groups.local")</option> 52: <option value="global">$msg.get("xe.admin.groups.global")</option> 53: <option value="both">$msg.get("xe.admin.groups.both")</option> 54: </select> 55: #else 56: <input type="hidden" value="local" name="wiki" /> 57: #end 58: </td> 59: </tr> 60: </thead> 61: <tbody id="groupstable-display" class="xwiki-livetable-display-body"><tr><td> </td></tr></tbody> 62: </table> 63: </td> 64: </tr> 65: <tr> 66: <td id="tdAddNewUserOrGroup"> 67: <span class="buttonwrapper"><a href="#" id="addNewGroup">$msg.get("rightsmanager.addnewgroup")</a></span> 68: </td> 69: </tr> 70: </table> 71: #set($addnewurl = $xwiki.getURL("XWiki.XWikiGroups", "view", "xpage=addnewgroup")) 72: #set($saveurl = $xwiki.getURL("XWiki.XWikiGroups", "view")) 73: #set($redirecturl = $xwiki.getDocument("XWiki.XWikiPreferences").getURL("admin", "editor=${editor}§ion=Groups")) 74: <script type="text/javascript"> 75: //<![CDATA[ 76: (function() { 77: var startup = function() { 78: var callback = function(row, i, table) { return displayGroups(row, i, table, "$!{services.csrf.getToken()}"); }; 79: var ta = new XWiki.widgets.LiveTable("$url", "groupstable", callback); 80: Event.observe($('addNewGroup'), "click", makeAddHandler("$addnewurl", "$saveurl", "$redirecturl")); 81: } 82: if ((typeof(XWiki) != 'undefined') && (typeof(XWiki.widgets) != 'undefined') && (typeof(XWiki.widgets.LiveTable) != 'undefined')) { 83: startup(); 84: } else { 85: document.observe('xwiki:dom:loading', startup); 86: } 87: })(); 88: //]]> 89: </script> 90: </div> ## xwikieditcontent 91: {{/html}} 92: {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox