Changes for page AdministrationAddSeverity
Last modified by Julien Fleury on 2020/12/22 01:31
edited by Julien Fleury
on 2020/12/22 01:31
on 2020/12/22 01:31
edited by Julien Fleury
on 2020/12/19 00:26
on 2020/12/19 00:26
Change comment:
Install extension [org.xwiki.contrib:application-task/2.1]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Hidden
-
... ... @@ -1,1 +1,1 @@ 1 - true1 +false - Content
-
... ... @@ -3,9 +3,8 @@ 3 3 #if($hasAdmin) 4 4 #set($severity = $request.severity) 5 5 #if(!$stringtool.isBlank($severity)) 6 - #set($documentRef = $services.model.createDocumentReference($ xcontext.getDatabase(), 'TaskManager', $severity))6 + #set($documentRef = $services.model.createDocumentReference($context.getDatabase(), 'TaskManager', $severity)) 7 7 #set($document = $xwiki.getDocument($documentRef)) 8 - #set($discard = $document.setHidden(true)) 9 9 #set($object = $document.getObject('TaskManager.SeverityClass', true)) 10 10 $object.set('severity', "$severity") 11 11 $document.save() ... ... @@ -20,9 +20,10 @@ 20 20 </span> 21 21 </form> 22 22 {{/html}} 23 - #set($columns = ['doc.name', 'doc.date', 'doc.author', '_actions']) 22 + #set($columns = ['doc.name', 'doc.space', 'doc.date', 'doc.author', '_actions']) 24 24 #set($columnsProperties = { 25 - 'doc.name' : { 'displayName' : $services.localization.render('taskmanager.livetable.severity'), 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable' : false }, 24 + 'doc.name' : { 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable' : false }, 25 + 'doc.space' : { 'type' : 'text', 'link' : 'space', '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,8 +31,7 @@ 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', 35 - 'queryFilters': ' ' 34 + 'className' : 'TaskManager.SeverityClass' 36 36 }) 37 37 #livetable("severityTable" $columns $columnsProperties $options) 38 38 #else