一般动作
登录
Wiki: BROPEN ▼: Document Index
»
Space: XWiki ▼: Document Index
»
Page: XWikiGroupSheet
搜索
default
页面动作
导出 ▼: 以PDF格式导出 以RTF格式导出 以HTML格式导出
更多动作 ▼: 打印预览 察看源码
欢迎进入Wiki » XWiki空间 » Data types » XWiki Group Class » XWikiGroupSheet

# Wiki源代码XWikiGroupSheet

在2013-10-01 11:52上被Administrator修改
评论 (0) · 附件 (0) · 记录 · 信息
显示行号 {{velocity output="false"}} #set($groupDoc = $doc) #if($doc.fullName == 'Main.UserDirectory') #set($groupDoc = $xwiki.getDocument('XWiki.XWikiAllGroup')) #end #macro(hasGroupRight $right $hasGroupRight) #set($result = $xwiki.hasAccessLevel($right, $xcontext.user, $doc.fullName) && $doc.getObject('XWiki.XWikiGroups', false)) #set($hasGroupRight = $NULL) #setVariable("$hasGroupRight" $result) #end #hasGroupRight('edit' $hasEditGroupRight) #hasGroupRight('delete' $hasDeleteGroupRight) {{/velocity}} {{velocity}} ## Keep testing the inline action for backward compatibility with existing groups. #if(($xcontext.action == 'edit' || $xcontext.action == 'inline') && $hasEditGroupRight) {{html}} #if ($request.xpage == 'plain') ## AJAX request. #set ($wrapperTag = 'form') <form class="xform" action="$doc.getURL('preview')"> <input type="hidden" name="form_token" value="$!services.csrf.getToken()" /> #else #userPicker_import() #set ($discard = $xwiki.jsx.use('XWiki.XWikiGroupSheet')) ## The form is generated in the edit template. <div class="xform"> #set ($wrapperTag = 'div') #end <dl> <dt><label for="userInput">$services.localization.render('xe.admin.groups.addUser')</label></dt> <dd> <input id="userInput" type="text" name="name" class="suggestUsers#if (!$xcontext.isMainWiki()) withScope#end multipleSelection" /> </dd> <dt><label for="groupInput">$services.localization.render('xe.admin.groups.addGroup')</label></dt> <dd> <input id="groupInput" type="text" name="name" class="suggestGroups#if (!$xcontext.isMainWiki()) withScope#end multipleSelection" /> </dd> </dl> <div class="buttons"> <span class="buttonwrapper"> <button type="submit" id="addMembers" name="xpage" value="adduorg">$services.localization.render('xe.admin.groups.addUser.submit')</button> </span> </div> </$wrapperTag> {{/html}}## #end #set($columnOptions = { "member" : {'link': 'auto', 'type': 'text'}, '_avatar' : { 'type' : 'none', 'link' : 'field', 'html' : 'true', 'sortable' : false }, "_actions" : { 'actions': ['delete'], 'actionCallbacks': {'delete': 'table.deleteRow(i);'}, 'ajaxActions': {'delete': true} } }) ## Keep testing the inline action for backward compatibility with existing groups. #if(($xcontext.action == 'edit' || $xcontext.action == 'inline') && $hasDeleteGroupRight) #set($columns = ['_avatar', 'member', '_actions']) #else #set($columns = ['_avatar', 'member']) #end #livetable('groupusers', $columns, $columnOptions, { 'url' : $groupDoc.getURL('view', 'xpage=getgroupmembers'), 'translationPrefix' : 'xe.admin.groups.', 'javascriptName' : 'editgrouptable' }) {{/velocity}}

# 快速链接

- 首页
- 新闻动态
- FAQ

Copyright © 2013 北京博瑞开源软件有限公司
京ICP备12048974号