Changes for page Main

Last modified by Administrator on 2026/02/17 22:15

From version 9.1
edited by Administrator
on 2026/02/17 22:15
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/17.10.3]
To version 8.1
edited by Administrator
on 2023/03/27 10:53
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.10.7]

Summary

Details

Page properties
Content
... ... @@ -190,7 +190,9 @@
190 190   ["#pageLink($sheetReference)"])
191 191   </span>
192 192   #else
193 - #inlineWarning($services.localization.render('platform.appwithinminutes.classEditorMultipleSheetsWarning'))
193 + <span class="warningmessage">
194 + $services.localization.render('platform.appwithinminutes.classEditorMultipleSheetsWarning')
195 + </span>
194 194   #end
195 195   </dd>
196 196   <dt>
... ... @@ -274,7 +274,6 @@
274 274   * Displays a configuration property of a class field. This macro can also be used to display a property of an object.
275 275   *#
276 276  #macro (displayFieldProperty $property $prefix $field)
277 - ## This 'displayFormType' property only exists for boolean fields.
278 278   #set ($displayFormType = $property.getProperty('displayFormType'))
279 279   #if ($property.classType == 'Boolean' && (!$displayFormType || $displayFormType.value == 'checkbox'))
280 280   <dt>
... ... @@ -666,7 +666,7 @@
666 666   #updateAndSaveTranslations
667 667   #if ($action == 'save')
668 668   #if ($errorMessage)
669 - #error($errorMessage)
670 + <div class="box errormessage">$errorMessage</div>
670 670   #elseif ("$!request.wizard" == 'true')
671 671   ## Redirect to next wizard step.
672 672   #set ($className = $stringtool.removeEnd($doc.fullName, 'Class'))
XWiki.JavaScriptExtension[2]
Code
... ... @@ -300,10 +300,8 @@
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'))';
304 304   // Replace the preview label with the pretty name input.
305 305   var previewLabel = field.getViewer().down('label');
306 - // We unset the for attribute, so that this label will not be set implicitely OR explicitely anymore.
307 307   previewLabel.writeAttribute('for', '');
308 308   previewLabel.removeChild(previewLabel.lastChild);
309 309   previewLabel.insert(prettyNameInput);
... ... @@ -328,12 +328,10 @@
328 328   _enhanceFieldDefaultValue : function(event) {
329 329   var field = event.memo.field;
330 330   var fieldName = field.getName();
331 - // We select the default field input and update it.
332 - field.getViewer().select('dd :input').each(function(input) {
329 + field.getViewer().select('input[type=text]', 'textarea').each(function(input) {
333 333   if (!input.title && input.name.endsWith('_0_' + fieldName)) {
334 334   input.title = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldDefaultValueToolTip'))';
335 335   }
336 - input.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldDefaultValueToolTip'))';
337 337   });
338 338   },
339 339   _onSave : function() {
... ... @@ -368,8 +368,7 @@
368 368   if (hintInput) {
369 369   hintInput.addClassName('xHint');
370 370   if (!hintInput.title) {
371 - hintInput.title = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldHintToolTip'))';
372 - hintInput.ariaLabel = '$escapetool.javascript($services.localization.render('platform.appwithinminutes.classEditorFieldHintToolTip'))';
367 + hintInput.title = 'Hint';
373 373   }
374 374   // Move the hint input below the pretty name input, in the field viewer.
375 375   var dd = hintInput.up('dd');