General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
AdminFieldsDisplaySheet
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
»
AdminFieldsDisplaySheet
Wiki source code of
AdminFieldsDisplaySheet
Last modified by
Administrator
on 2011/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} ### Sheet used to generically display the XWikiPreferences object fields in the administration sheets. #if ("$!section" != '') ## clean="false" due to bug #XWIKI-4122 - the <legend> element is dropped. {{html clean="false"}} <form id="$section.toLowerCase()" method="post" action="$xwiki.getURL($currentDoc, 'saveandcontinue')" onsubmit="cancelCancelEdit()"> #foreach ($item in $legend) #set ($fields = $params.get($item)) <fieldset class="$item"> #if($legend.size() > 1) <legend>$msg.get("admin.${item}")</legend> #end #foreach($field in $fields) #set($prop = $obj.xWikiClass.get($field)) #set($title = $msg.get($field)) #if ($title == $field && $prop) #set ($title = $!prop.prettyName) #end <p> <label #if($prop)for="${prefsclassname}_${obj.number}_${prop.name}"#end class="$field">$title #if($field == 'skin') #set ($skin = $xwiki.skin) #if ($skin.indexOf('.') != -1) <span class="buttonwrapper"><a href="$xwiki.getURL($skin)">$msg.get('admin.customize')</a></span> #end #end #if($field == 'colorTheme') #set ($colorThemeName = $xwiki.getXWikiPreference('colorTheme')) #if ($colorThemeName.indexOf('.') != -1) <span class="buttonwrapper"><a href="$xwiki.getURL($colorThemeName, 'inline')">$msg.get('admin.customize')</a></span> #end #end </label> #if ($prop) $doc.displayEdit($prop, "${prefsclassname}_${obj.number}_", $obj) #end </p> #end </fieldset> #end <div class="hidden"> <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> <input type="hidden" name="xcontinue" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&section=${escapetool.url(${section})}&space=${escapetool.url(${currentSpace})}")" /> <input type="hidden" name="xredirect" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&section=${escapetool.url(${section})}&space=${escapetool.url(${currentSpace})}")" /> <input type="hidden" name="classname" value="XWiki.XWikiPreferences" /> </div> <div class="bottombuttons"> <p class="admin-buttons"> <span class="buttonwrapper"><input class="button" type="submit" name="formactionsac" value="$msg.get('admin.save')" /></span> </p> </div> ## bottombuttons </form> {{/html}} #end {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox