Wiki-Quellcode von WebHomeSheet
Zuletzt geändert von Daniel Herrmann am 2026/03/08 12:48
Zeige letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | #set ($mainReference = $services.model.createDocumentReference('', 'TaskManager', 'TaskManagerClass')) | ||
| 3 | #if (!$services.licensing.licensor.hasLicensureForEntity($mainReference)) | ||
| 4 | {{missingLicenseMessage extensionName="taskmanager.extension.name"/}} | ||
| 5 | #else | ||
| 6 | |||
| 7 | {{html}} | ||
| 8 | <a id="task-manager-view-task-template-list" | ||
| 9 | href="$escapetool.xml($xwiki.getDocument('TaskManager.TaskTemplateList').getURL())" | ||
| 10 | class="buttonwrapper"> | ||
| 11 | <button class='btn'> | ||
| 12 | $escapetool.xml($services.localization.render('taskmanager.templateList.button')) | ||
| 13 | </button> | ||
| 14 | </a> | ||
| 15 | {{/html}} | ||
| 16 | |||
| 17 | {{taskgantt readonly="false"/}} | ||
| 18 | |||
| 19 | #set ($statusOptions = [{"value": "", "label": $services.localization.render('livedata.filter.list.emptyLabel')}]) | ||
| 20 | #foreach($rValue in $services.task.getSortedStatuses()) | ||
| 21 | #set($key = "TaskManager.TaskManagerClass_status_$rValue") | ||
| 22 | #set($translation = $services.localization.render($key)) | ||
| 23 | #if ($translation == $key) | ||
| 24 | #set ($discard = $statusOptions.add({ "value": $rValue, "label": $rValue})) | ||
| 25 | #else | ||
| 26 | #set ($discard = $statusOptions.add({ "value": $rValue, "label": $translation})) | ||
| 27 | #end | ||
| 28 | #end | ||
| 29 | |||
| 30 | {{liveData | ||
| 31 | id="taskmanager" | ||
| 32 | properties="name,project,status,severity,reporter,assignee,duedate,_actions" | ||
| 33 | source="liveTable" | ||
| 34 | sourceParameters="className=TaskManager.TaskManagerClass&translationPrefix=taskmanager.livetable.&resultPage=TaskManager.TaskManagerLiveTableResults" | ||
| 35 | }} | ||
| 36 | { | ||
| 37 | "meta": { | ||
| 38 | "propertyDescriptors": [ | ||
| 39 | { | ||
| 40 | "id": "name", | ||
| 41 | "displayer": { | ||
| 42 | "id": "link", | ||
| 43 | "propertyHref": "doc.url" | ||
| 44 | } | ||
| 45 | }, | ||
| 46 | { | ||
| 47 | "id": "status", | ||
| 48 | "filter": { | ||
| 49 | "id": "list", | ||
| 50 | "options": $jsontool.serialize($statusOptions) | ||
| 51 | } | ||
| 52 | } | ||
| 53 | ] | ||
| 54 | } | ||
| 55 | } | ||
| 56 | {{/liveData}} | ||
| 57 | #end | ||
| 58 | {{/velocity}} |