Modifications pour le document AdminFieldsDisplaySheet
Modifié par Florent Charton le 2024/08/08 18:43
Depuis la version 2.1
modifié par Florent Charton
sur 2024/08/08 18:43
sur 2024/08/08 18:43
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/15.10.11]
À la version 1.1
modifié par superadmin
sur 2022/06/20 08:48
sur 2022/06/20 08:48
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/13.10.6]
Résumé
-
Propriétés de la Page (2 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 - xwiki:XWiki.fcharton1 +XWiki.superadmin - Contenu
-
... ... @@ -19,14 +19,10 @@ 19 19 $out ## 20 20 #set ($out = '') 21 21 #end 22 - $ escapetool.xml($title)22 + $title 23 23 #if ($prop.name == 'skin') 24 24 #set ($skin = $xwiki.skin) 25 - <span class="buttonwrapper"> 26 - <a href="$xwiki.getURL($skin, 'edit')"#if ($skin.indexOf('.') < 0) class="hidden"#end> 27 - $escapetool.xml($services.localization.render('admin.customize')) 28 - </a> 29 - </span> 25 + <span class="buttonwrapper"><a href="$xwiki.getURL($skin, 'edit')"#if ($skin.indexOf('.') < 0) class="hidden"#end>$services.localization.render('admin.customize')</a></span> 30 30 #end 31 31 #if ($prop.name == 'colorTheme') 32 32 #if ($editor == 'globaladmin') ... ... @@ -35,22 +35,18 @@ 35 35 #set ($colorThemeName = $xwiki.getSpacePreference('colorTheme')) 36 36 #set ($wikiColorTheme = $xwiki.getDocument($xwiki.getXWikiPreference('colorTheme'))) 37 37 #if (!$wikiColorTheme.isNew()) 38 - #set ($colorThemeHint = $ escapetool.xml($services.localization.render('admin.colortheme.wikiSetting', ['__LINK__'])).replaceAll('__LINK__',"<a href='$wikiColorTheme.getURL()'>$wikiColorTheme.plainTitle</a>"))34 + #set ($colorThemeHint = $services.localization.render('admin.colortheme.wikiSetting', ["<a href='$wikiColorTheme.getURL()'>$wikiColorTheme.plainTitle</a>"])) 39 39 #end 40 40 #end 41 41 #if ($xwiki.exists($services.model.createDocumentReference('', 'FlamingoThemes', 'WebHome'))) 42 - #set ($colorThemeHint = "$!{colorThemeHint} <strong><a href=""$xwiki.getURL($services.model.createDocumentReference('', 'FlamingoThemes', 'WebHome'))"">$ escapetool.xml($services.localization.render('admin.colortheme.manage'))</a></strong>")38 + #set ($colorThemeHint = "$!{colorThemeHint} <strong><a href=""$xwiki.getURL($services.model.createDocumentReference('', 'FlamingoThemes', 'WebHome'))"">$services.localization.render('admin.colortheme.manage')</a></strong>") 43 43 #elseif ($xwiki.exists($services.model.createDocumentReference('', 'ColorThemes', 'WebHome'))) 44 - #set ($colorThemeHint = "$!{colorThemeHint} <strong><a href=""$xwiki.getURL($services.model.createDocumentReference('', 'ColorThemes', 'WebHome'))"">$ escapetool.xml($services.localization.render('admin.colortheme.manage'))</a></strong>")40 + #set ($colorThemeHint = "$!{colorThemeHint} <strong><a href=""$xwiki.getURL($services.model.createDocumentReference('', 'ColorThemes', 'WebHome'))"">$services.localization.render('admin.colortheme.manage')</a></strong>") 45 45 #end 46 - <span class="buttonwrapper"> 47 - <a href="$xwiki.getURL($colorThemeName, 'edit')"#if ($colorThemeName.indexOf('.') < 0) class="hidden"#end> 48 - $escapetool.xml($services.localization.render('admin.customize')) 49 - </a> 50 - </span> 42 + <span class="buttonwrapper"><a href="$xwiki.getURL($colorThemeName, 'edit')"#if ($colorThemeName.indexOf('.') < 0) class="hidden"#end>$services.localization.render('admin.customize')</a></span> 51 51 #end 52 52 </label> 53 - #if ($hint)<span class="xHint">$ escapetool.xml($hint)</span>#end45 + #if ($hint)<span class="xHint">$hint</span>#end 54 54 </dt> 55 55 #if ($out != '') 56 56 <dd>$out</dd> ... ... @@ -70,7 +70,6 @@ 70 70 ### - $params (mandatory): list of properties to display and their associated sections 71 71 ### - $paramDoc (optional): document object which contains the $paramClass 72 72 ### - $paramClass (optional): name of the xclass type for the xobject from which to read/save from 73 -### - $objectPolicy (since 14.10) (optional): the update policy to use when saving the form 74 74 #if ("$!section" != '') 75 75 ## clean="false" due to bug #XWIKI-4122 - the <legend> element is dropped. 76 76 {{html clean="false"}} ... ... @@ -86,17 +86,14 @@ 86 86 #set($configClassName = 'XWiki.XWikiPreferences') 87 87 #set($formId = $section.toLowerCase()) 88 88 #end 89 - <form id="$escapetool.xml($formId)" method="post" 90 - action="$escapetool.xml($xwiki.getURL($configDoc, 'saveandcontinue'))" 91 - onsubmit="cancelCancelEdit()" 92 - class="xform"> 80 + <form id="$formId" method="post" action="$xwiki.getURL($configDoc, 'saveandcontinue')" onsubmit="cancelCancelEdit()" class="xform"> 93 93 #set($obj = $configDoc.getObject($configClassName)) 94 94 #foreach ($entry in $params.entrySet()) 95 95 #set ($fields = $entry.value) 96 - <fieldset class="$e scapetool.xml($entry.key)">84 + <fieldset class="$entry.key"> 97 97 ## If there is only one section, don't display the legend 98 98 #if ($params.size() > 1) 99 - <legend>$ escapetool.xml($services.localization.render("admin.$entry.key"))</legend>87 + <legend>$services.localization.render("admin.$entry.key")</legend> 100 100 #end 101 101 #if ($fields.size() > 0) 102 102 <dl> ... ... @@ -118,15 +118,11 @@ 118 118 <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> 119 119 <input type="hidden" name="xcontinue" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&section=${escapetool.url(${section})}&space=${escapetool.url(${currentSpace})}")" /> 120 120 <input type="hidden" name="xredirect" value="$xwiki.getURL($currentDoc, 'admin', "editor=${escapetool.url(${editor})}&section=${escapetool.url(${section})}&space=${escapetool.url(${currentSpace})}")" /> 121 - <input type="hidden" name="classname" value="$escapetool.xml($configClassName)" /> 122 - #if ("$!objectPolicy" != '') 123 - <input type="hidden" name="objectPolicy" value="$escapetool.xml($objectPolicy)" /> 124 - #end 109 + <input type="hidden" name="classname" value="$configClassName" /> 125 125 </div> 126 126 <div class="bottombuttons"> 127 127 <p class="admin-buttons"> 128 - <span class="buttonwrapper"><input class="button" type="submit" name="formactionsac" 129 - value="$escapetool.xml($services.localization.render('admin.save'))" /></span> 113 + <span class="buttonwrapper"><input class="button" type="submit" name="formactionsac" value="$services.localization.render('admin.save')" /></span> 130 130 </p> 131 131 </div> ## bottombuttons 132 132 </form>