Changes for page Main
Last modified by Administrator on 2026/02/17 22:15
From version
8.1
edited by Administrator
on 2023/03/27 10:53
on 2023/03/27 10:53
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.10.7]
To version
9.1
edited by Administrator
on 2026/02/17 22:15
on 2026/02/17 22:15
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.10.3]
Summary
Details
- Page properties
-
- Content
-
... ... @@ -190,9 +190,7 @@ 190 190 ["#pageLink($sheetReference)"]) 191 191 </span> 192 192 #else 193 - <span class="warningmessage"> 194 - $services.localization.render('platform.appwithinminutes.classEditorMultipleSheetsWarning') 195 - </span> 193 + #inlineWarning($services.localization.render('platform.appwithinminutes.classEditorMultipleSheetsWarning')) 196 196 #end 197 197 </dd> 198 198 <dt> ... ... @@ -276,6 +276,7 @@ 276 276 * Displays a configuration property of a class field. This macro can also be used to display a property of an object. 277 277 *# 278 278 #macro (displayFieldProperty $property $prefix $field) 277 + ## This 'displayFormType' property only exists for boolean fields. 279 279 #set ($displayFormType = $property.getProperty('displayFormType')) 280 280 #if ($property.classType == 'Boolean' && (!$displayFormType || $displayFormType.value == 'checkbox')) 281 281 <dt> ... ... @@ -667,7 +667,7 @@ 667 667 #updateAndSaveTranslations 668 668 #if ($action == 'save') 669 669 #if ($errorMessage) 670 - <div class="boxerrormessage">$errorMessage</div>669 + #error($errorMessage) 671 671 #elseif ("$!request.wizard" == 'true') 672 672 ## Redirect to next wizard step. 673 673 #set ($className = $stringtool.removeEnd($doc.fullName, 'Class'))
- XWiki.JavaScriptExtension[2]
-
- Code
-
... ... @@ -300,8 +300,10 @@ 300 300 var label = previousDT.down('label'); 301 301 prettyNameInput.title = label.textContent || label.innerText; 302 302 } 303 + prettyNameInput.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldPrettyNameToolTip'))'; 303 303 // Replace the preview label with the pretty name input. 304 304 var previewLabel = field.getViewer().down('label'); 306 + // We unset the for attribute, so that this label will not be set implicitely OR explicitely anymore. 305 305 previewLabel.writeAttribute('for', ''); 306 306 previewLabel.removeChild(previewLabel.lastChild); 307 307 previewLabel.insert(prettyNameInput); ... ... @@ -326,10 +326,12 @@ 326 326 _enhanceFieldDefaultValue : function(event) { 327 327 var field = event.memo.field; 328 328 var fieldName = field.getName(); 329 - field.getViewer().select('input[type=text]', 'textarea').each(function(input) { 331 + // We select the default field input and update it. 332 + field.getViewer().select('dd :input').each(function(input) { 330 330 if (!input.title && input.name.endsWith('_0_' + fieldName)) { 331 331 input.title = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldDefaultValueToolTip'))'; 332 332 } 336 + input.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldDefaultValueToolTip'))'; 333 333 }); 334 334 }, 335 335 _onSave : function() { ... ... @@ -364,7 +364,8 @@ 364 364 if (hintInput) { 365 365 hintInput.addClassName('xHint'); 366 366 if (!hintInput.title) { 367 - hintInput.title = 'Hint'; 371 + hintInput.title = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldHintToolTip'))'; 372 + hintInput.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldHintToolTip'))'; 368 368 } 369 369 // Move the hint input below the pretty name input, in the field viewer. 370 370 var dd = hintInput.up('dd');