From version 1.1 >
edited by Julien Fleury
on 2020/12/19 00:26
To version < 2.1
edited by Julien Fleury
on 2020/12/22 01:31
Change comment: Install extension [org.xwiki.contrib:application-task-ui/2.5.1]

Summary

Details

Page properties
Hidden
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
Content
... ... @@ -3,8 +3,9 @@
3 3  #if($hasAdmin)
4 4   #set($severity = $request.severity)
5 5   #if(!$stringtool.isBlank($severity))
6 - #set($documentRef = $services.model.createDocumentReference($context.getDatabase(), 'TaskManager', $severity))
6 + #set($documentRef = $services.model.createDocumentReference($xcontext.getDatabase(), 'TaskManager', $severity))
7 7   #set($document = $xwiki.getDocument($documentRef))
8 + #set($discard = $document.setHidden(true))
8 8   #set($object = $document.getObject('TaskManager.SeverityClass', true))
9 9   $object.set('severity', "$severity")
10 10   $document.save()
... ... @@ -19,10 +19,9 @@
19 19   </span>
20 20   </form>
21 21   {{/html}}
22 - #set($columns = ['doc.name', 'doc.space', 'doc.date', 'doc.author', '_actions'])
23 + #set($columns = ['doc.name', 'doc.date', 'doc.author', '_actions'])
23 23   #set($columnsProperties = {
24 - 'doc.name' : { 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable' : false },
25 - 'doc.space' : { 'type' : 'text', 'link' : 'space', 'filterable' : false },
25 + 'doc.name' : { 'displayName' : $services.localization.render('taskmanager.livetable.severity'), 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable' : false },
26 26   'doc.date' : { 'type' : 'date', 'filterable' : false },
27 27   'doc.author': { 'type' : 'text', 'link' : 'author', 'filterable' : false },
28 28   '_actions' : { 'actions' : ['delete'] }
... ... @@ -31,7 +31,8 @@
31 31   'translationPrefix' : 'xe.index.',
32 32   'rowCount' : 15,
33 33   'description' : 'This table lists all the documents found on this wiki. The columns can be sorted and some can be filtered.',
34 - 'className' : 'TaskManager.SeverityClass'
34 + 'className' : 'TaskManager.SeverityClass',
35 + 'queryFilters': ' '
35 35   })
36 36  #livetable("severityTable" $columns $columnsProperties $options)
37 37  #else

My Due Tasks

You have to be logged in in order to view this panel

This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian