Show last authors
1 {{velocity}}
2 #set($discard = $services.localization.use('document', "$doc.wiki:TaskManager.TaskManagerTranslations"))
3 #if($hasAdmin)
4 #set($severity = $request.severity)
5 #if(!$stringtool.isBlank($severity))
6 #set($documentRef = $services.model.createDocumentReference($xcontext.getDatabase(), 'TaskManager', $severity))
7 #set($document = $xwiki.getDocument($documentRef))
8 #set($discard = $document.setHidden(true))
9 #set($object = $document.getObject('TaskManager.SeverityClass', true))
10 $object.set('severity', "$severity")
11 $document.save()
12 #end
13
14 {{html}}
15 <form class="xformInline" method="post">
16 <label for="severity">$services.localization.render('TaskManager.administration.addSeverity.label')</label>
17 <input id="severity" name="severity" type="text" size="20"/>
18 <span class="buttonwrapper">
19 <button class="button" type="submit">$services.localization.render('TaskManager.administration.addSeverity.submit')</button>
20 </span>
21 </form>
22 {{/html}}
23 #set($columns = ['doc.name', 'doc.date', 'doc.author', '_actions'])
24 #set($columnsProperties = {
25 'doc.name' : { 'displayName' : $services.localization.render('taskmanager.livetable.severity'), 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable' : false },
26 'doc.date' : { 'type' : 'date', 'filterable' : false },
27 'doc.author': { 'type' : 'text', 'link' : 'author', 'filterable' : false },
28 '_actions' : { 'actions' : ['delete'] }
29 })
30 #set($options = {
31 'translationPrefix' : 'xe.index.',
32 'rowCount' : 15,
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': ' '
36 })
37 #livetable("severityTable" $columns $columnsProperties $options)
38 #else
39 {{info}}You need to be an Administrator{{/info}}
40 #end
41 {{/velocity}}

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