Skip to content

Commit

Permalink
XWIKI-21521: DefaultSkin form should be accessible (xwiki#2642)
Browse files Browse the repository at this point in the history
* Wrapped the pretty name in a label which is bound to the form field with its `for` attribute
* Replaced the hard-coded reference with a call to the object number.
  • Loading branch information
Sereza7 committed Feb 12, 2024
1 parent 100188c commit ec1f5b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
#set ($class = $doc.getObject($className).xWikiClass)
#foreach ($prop in $class.properties)
#if ($prop.classType != 'TextArea')
; $services.rendering.escape($prop.prettyName, 'xwiki/2.1')
; {{html}}<label for="${className}_$escapetool.xml($doc.getObject($className).getNumber())_$escapetool.xml($prop.name)">$escapetool.xml($prop.prettyName)</label>{{/html}}
: #if($prop.name == 'logo')## Avoid line break
{{attachmentSelector classname="${className}" property="${services.rendering.escape($prop.name, 'xwiki/2.1')}" filter="png,jpg,gif,svg" displayImage="true"/}}## Avoid line break
#else$doc.display($prop.name)#end
Expand Down

0 comments on commit ec1f5b2

Please sign in to comment.