Allgemeine Aktionen:
Anmelden
Registrieren
Start ▼: Wiki Verzeichnis
»
Bereich: XWiki
»
Seite: XWikiGroupSheet
default
Aktionen:
Exportieren ▼: Als PDF exportieren Als RTF exportieren Als HTML exportieren
Weitere Aktionen ▼: Druckvorschau Zeige den Quellcode
Willkommen bei bytebang » XWiki Bereich » Data types » XWiki Group Class » XWikiGroupSheet

# Wiki-Quellcode von XWikiGroupSheet

Zuletzt geändert von Administrator am 2014/06/29 19:28
Anhänge (0) · Information
Zeilennummern anzeigen {{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}}

(c) 2025, by bytebang e.U. - Impressum - Datenschutz / Nutzungsbedingungen
-