Changes for page LiveTable View Sheet
Last modified by Сергей Коршунов on 2025/05/01 21:19
From version 4.1
edited by Сергей Коршунов
on 2023/01/17 14:14
on 2023/01/17 14:14
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.10.3]
To version 8.1
edited by Сергей Коршунов
on 2025/01/11 21:52
on 2025/01/11 21:52
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/16.10.2]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -51,7 +51,7 @@ 51 51 ((( 52 52 = $services.localization.render('platform.appwithinminutes.appHomePageActionsHeading') = 53 53 #if ($hasCreateData) 54 - * [[$services.localization.render('platform.appwithinminutes.appHomePageAddEntryHint')>>||anchor="AddNewEntry" class="action add"]]## 54 + * [[{{displayIcon name="add"/}} $services.localization.render('platform.appwithinminutes.appHomePageAddEntryHint')>>||anchor="AddNewEntry" class="action add"]]## 55 55 #if ("$!templateProvider.getValue('terminal')" == '1') 56 56 #set ($entryReference = $services.model.createDocumentReference('__entryName__', $dataSpaceRef)) 57 57 #else ... ... @@ -60,6 +60,7 @@ 60 60 #end 61 61 ## We need to set the title if we want to be able to sort or filter the doc.title live table column. 62 62 #set ($params = { 63 + 'form_token': $services.csrf.token, 63 63 'template': "${className}Template", 64 64 'title': '__entryName__', 65 65 'parent': $services.model.serialize($doc.documentReference, 'local') ... ... @@ -83,10 +83,10 @@ 83 83 'appName': $doc.space, 84 84 'resolve': true 85 85 })) 86 - * [[$services.localization.render('platform.appwithinminutes.appHomePageEditAppLabel')>>AppWithinMinutes.CreateApplication||queryString="$queryString" class="action edit"]] 87 + * [[{{displayIcon name="edit"/}} $services.localization.render('platform.appwithinminutes.appHomePageEditAppLabel')>>AppWithinMinutes.CreateApplication||queryString="$queryString" class="action edit"]] 87 87 #end 88 88 #if ($hasEditTranslations) 89 - * [[$services.localization.render('platform.appwithinminutes.appHomePageTranslateAppLabel')>>path:${xwiki.getURL($translationsRef, 'edit', 'editor=wiki')}||class="action translate"]] 90 + * [[{{displayIcon name="translate"/}} $services.localization.render('platform.appwithinminutes.appHomePageTranslateAppLabel')>>path:${xwiki.getURL($translationsRef, 'edit', 'editor=wiki')}||class="action translate"]] 90 90 #end 91 91 #if ($hasDeleteData) 92 92 #set ($deleteDataURL = $xwiki.getURL('AppWithinMinutes.DeleteApplication', 'view', $escapetool.url({ ... ... @@ -95,7 +95,7 @@ 95 95 'scope': 'entries', 96 96 'xredirect': $doc.getURL() 97 97 }))) 98 - * [[$services.localization.render('platform.appwithinminutes.appHomePageDeleteEntriesLabel')>>path:${deleteDataURL}||class="action deleteData"]] 99 + * [[{{displayIcon name="cross"/}} $services.localization.render('platform.appwithinminutes.appHomePageDeleteEntriesLabel')>>path:${deleteDataURL}||class="action deleteData"]] 99 99 #end 100 100 #if ($hasDeleteApplication) 101 101 #set ($deleteAppURL = $xwiki.getURL('AppWithinMinutes.DeleteApplication', 'view', $escapetool.url({ ... ... @@ -103,7 +103,7 @@ 103 103 'resolve': true, 104 104 'xredirect': $doc.getURL() 105 105 }))) 106 - * [[$services.localization.render('platform.appwithinminutes.appHomePageDeleteAppLabel')>>path:${deleteAppURL}||class="action delete"]] 107 + * [[{{displayIcon name="trash"/}} $services.localization.render('platform.appwithinminutes.appHomePageDeleteAppLabel')>>path:${deleteAppURL}||class="action delete"]] 107 107 #end 108 108 ))) 109 109 #end ... ... @@ -203,7 +203,7 @@ 203 203 #set ($classFullName = $doc.getValue('class')) 204 204 #if ("$!classFullName" == '' || !$xwiki.exists($classFullName)) 205 205 {{warning}} 206 - $services.icon.render('warning'){{translation key="platform.appwithinminutes.appHomePageMovedWarning"/}}207 + {{translation key="platform.appwithinminutes.appHomePageMovedWarning"/}} 207 207 {{/warning}} 208 208 209 209 #end
- locate.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.admins - Size
-
... ... @@ -1,1 +1,0 @@ 1 -746 bytes - Content
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -59,7 +59,8 @@ 59 59 * Rename Application 60 60 */ 61 61 require(['jquery', 'bootstrap', 'xwiki-form-validation-async'], function($) { 62 - #set ($currentDocReference = $xwiki.getDocument($request.currentApp).getDocumentReference()) 62 + ## Note: if not currentApp request param is not passed, we default to the wiki home page reference to avoid a NPE 63 + #set ($currentDocReference = $xwiki.getDocument("$!request.currentApp").getDocumentReference()) 63 63 // if we cannot find any extension related to this page app, it's not part of an extension. 64 64 var isNotAnExtension = $services.extension.xar.getInstalledExtensions($currentDocReference).isEmpty(); 65 65
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -16,30 +16,10 @@ 16 16 background: none no-repeat scroll 0 center transparent; 17 17 display: block; 18 18 font-size: .8em; 19 - padding: .3em .3em .3em 20px;19 + padding: .3em .3em .3em .3em; 20 20 text-transform: uppercase; 21 21 } 22 22 23 -#actionBox .action.edit { 24 - background-image: url("$xwiki.getSkinFile('icons/silk/application_edit.png')"); 25 -} 26 - 27 -#actionBox .action.translate { 28 - background-image: url("$doc.getAttachmentURL('locate.png')"); 29 -} 30 - 31 -#actionBox .action.delete { 32 - background-image: url("$xwiki.getSkinFile('icons/silk/application_delete.png')"); 33 -} 34 - 35 -#actionBox .action.deleteData { 36 - background-image: url("$xwiki.getSkinFile('icons/silk/application_form_delete.png')"); 37 -} 38 - 39 -#actionBox .action.add { 40 - background-image: url("$xwiki.getSkinFile('icons/silk/add.png')"); 41 -} 42 - 43 43 #entryNamePopup { 44 44 margin-right: 20px; 45 45 }