Modifications pour le document Administration

Modifié par superadmin le 2026/01/29 15:29

Depuis la version 3.1
modifié par superadmin
sur 2026/01/29 15:29
Commentaire de modification : Imported from XAR
À la version 2.1
modifié par superadmin
sur 2026/01/29 15:29
Commentaire de modification : Migrated property [configureGlobally] from class [XWiki.ConfigurableClass]

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -8,14 +8,14 @@
8 8   </div>
9 9   <dl>
10 10   <dt>
11 - <label for="XWiki.Captcha.ConfigurationClass_0_captcha">$services.localization.render('captcha.admin.defaultCaptchaName.label')</label>
12 - <span class='xHint'>$services.localization.render('captcha.admin.defaultCaptchaName.hint')</span>
11 + <label for="XWiki.Captcha.ConfigurationClass_0_captcha">$escapetool.xml($services.localization.render('captcha.admin.defaultCaptchaName.label'))</label>
12 + <span class='xHint'>$escapetool.xml($services.localization.render('captcha.admin.defaultCaptchaName.hint'))</span>
13 13   </dt>
14 14   <dd>
15 15   <select name="XWiki.Captcha.ConfigurationClass_0_captcha" id="XWiki.Captcha.ConfigurationClass_0_captcha">
16 16   #foreach ($captchaName in $services.captcha.captchaNames)
17 17   <option value="${captchaName}" #if($captchaName == $services.captcha.defaultCaptchaName)selected='selected'#end>
18 - $services.localization.render("captcha.${captchaName}")
18 + $escapetool.xml($services.localization.render("captcha.${captchaName}"))
19 19   </option>
20 20   #end
21 21   </select>
... ... @@ -22,7 +22,7 @@
22 22   </dd>
23 23   </dl>
24 24   <div class='buttonwrapper'>
25 - <input value="$services.localization.render('admin.save')" class='button' type='submit'>
25 + <input value="$escapetool.xml($services.localization.render('admin.save'))" class='button' type='submit'>
26 26   </div>
27 27  </form>
28 28  {{/html}}
... ... @@ -31,14 +31,14 @@
31 31  (% class='col-xs-12 col-lg-7' %)(((
32 32  #set ($captchaImplementationAdministrations = $services.uix.getExtensions('org.xwiki.captcha', {'select' : "$!{services.captcha.defaultCaptchaName}"}))
33 33  #if ($captchaImplementationAdministrations.size() > 0)
34 - === Configure $services.localization.render("captcha.${services.captcha.defaultCaptchaName}") ===
34 + === $services.localization.render('captcha.admin.configure.title', $services.rendering.resolveSyntax('xwiki/2.1'), [$services.localization.render("captcha.${services.captcha.defaultCaptchaName}")]) ===
35 35   $services.rendering.render($captchaImplementationAdministrations[0].execute(), $doc.syntax)
36 36  #end
37 37  )))
38 38  (% class='col-xs-12 col-lg-5 well' %)(((
39 -=== Sample CAPTCHA ===
39 +=== $services.localization.render('captcha.admin.sample.title', $services.rendering.resolveSyntax('xwiki/2.1')) ===
40 40  
41 -How the configured CAPTCHA looks like when it will be displayed in a form, for example.
41 +$services.localization.render('captcha.admin.sample.description', $services.rendering.resolveSyntax('xwiki/2.1'))
42 42  
43 43  {{html clean='false'}}
44 44  <div class='xform'>
XWiki.ConfigurableClass[0]
configureGlobally
... ... @@ -1,1 +1,0 @@
1 -Oui