XWiki
AdminFieldsDisplaySheet
en
0
XWiki.AdminSheet
XWiki.Admin
XWiki.Admin
xwiki:XWiki.Admin
1211800243000
1275386737000
1275386737000
1.1

# AdminFieldsDisplaySheet

Imported from XAR
false
xwiki/2.0
false
{{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) &nbsp;<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) &nbsp;<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})}&amp;section=${escapetool.url(${section})}&amp;space=${escapetool.url(${currentSpace})}")" /> <input type="hidden" name="xredirect" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&amp;section=${escapetool.url(${section})}&amp;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}}