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
Hide line numbers
1: {{velocity}} 2: ### Sheet used to generically display the XWikiPreferences object fields in the administration sheets. 3: #if ("$!section" != '') 4: ## clean="false" due to bug #XWIKI-4122 - the <legend> element is dropped. 5: {{html clean="false"}} 6: <form id="$section.toLowerCase()" method="post" action="$xwiki.getURL($currentDoc, 'saveandcontinue')" onsubmit="cancelCancelEdit()"> 7: #foreach ($item in $legend) 8: #set ($fields = $params.get($item)) 9: <fieldset class="$item"> 10: #if($legend.size() > 1) 11: <legend>$msg.get("admin.${item}")</legend> 12: #end 13: #foreach($field in $fields) 14: #set($prop = $obj.xWikiClass.get($field)) 15: #set($title = $msg.get($field)) 16: #if ($title == $field && $prop) 17: #set ($title = $!prop.prettyName) 18: #end 19: <p> 20: <label #if($prop)for="${prefsclassname}_${obj.number}_${prop.name}"#end class="$field">$title 21: #if($field == 'skin') 22: #set ($skin = $xwiki.skin) 23: #if ($skin.indexOf('.') != -1) 24: <span class="buttonwrapper"><a href="$xwiki.getURL($skin)">$msg.get('admin.customize')</a></span> 25: #end 26: #end 27: #if($field == 'colorTheme') 28: #set ($colorThemeName = $xwiki.getXWikiPreference('colorTheme')) 29: #if ($colorThemeName.indexOf('.') != -1) 30: <span class="buttonwrapper"><a href="$xwiki.getURL($colorThemeName, 'inline')">$msg.get('admin.customize')</a></span> 31: #end 32: #end 33: </label> 34: #if ($prop) 35: $doc.displayEdit($prop, "${prefsclassname}_${obj.number}_", $obj) 36: #end 37: </p> 38: #end 39: </fieldset> 40: #end 41: <div class="hidden"> 42: <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> 43: <input type="hidden" name="xcontinue" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&section=${escapetool.url(${section})}&space=${escapetool.url(${currentSpace})}")" /> 44: <input type="hidden" name="xredirect" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&section=${escapetool.url(${section})}&space=${escapetool.url(${currentSpace})}")" /> 45: <input type="hidden" name="classname" value="XWiki.XWikiPreferences" /> 46: </div> 47: <div class="bottombuttons"> 48: <p class="admin-buttons"> 49: <span class="buttonwrapper"><input class="button" type="submit" name="formactionsac" value="$msg.get('admin.save')" /></span> 50: </p> 51: </div> ## bottombuttons 52: </form> 53: {{/html}} 54: #end 55: {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox