Wiki source code of Risk Treatments
Last modified by Lee Pedley on 2026/09/21 21:59
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | {{html wiki="true" clean="false"}} | ||
| 3 | <div class="box infomessage"><strong>Risk Treatments</strong><br/>Risk treatment plan linking actions to risks and controls with ownership, dates and completion status.<br/><small>To create a structured record, use <strong>Add New Risk Treatment</strong> below. The XWiki <strong>Create</strong> button in the top-right creates general wiki pages and is not the recommended route for ISMS records.</small></div> | ||
| 4 | <form action="$xwiki.getURL('Risk Treatments.WebHome','create')" method="get" style="display:inline-block;margin:1em 0"> | ||
| 5 | <input type="hidden" name="templateprovider" value="Risk Treatments.Code.Risk TreatmentsTemplateProvider"/> | ||
| 6 | <button type="submit" class="btn btn-primary">Add New Risk Treatment</button> | ||
| 7 | </form> | ||
| 8 | <a class="btn btn-default" href="$xwiki.getURL('ISMS.Dashboard','view')">Dashboard</a> <a class="btn btn-default" href="$xwiki.getURL('ISMS.QuickStart','view')">Help / Start Here</a> | ||
| 9 | {{/html}} | ||
| 10 | #set ($columnsProperties = { | ||
| 11 | 'doc.title': {"link":"view"}, | ||
| 12 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
| 13 | }) | ||
| 14 | #set ($options = { | ||
| 15 | 'className': 'Risk Treatments.Code.Risk TreatmentsClass', | ||
| 16 | 'translationPrefix': 'risk.treatments.livetable.', | ||
| 17 | 'tagCloud': false, | ||
| 18 | 'rowCount': 25, | ||
| 19 | 'maxPages': 15, | ||
| 20 | 'selectedColumn': 'doc.title', | ||
| 21 | 'defaultOrder': 'asc' | ||
| 22 | }) | ||
| 23 | #set ($columns = ['treatmentId', 'doc.title', 'relatedRisk', 'owner', 'targetDate', 'status', 'completionDate', '_actions']) | ||
| 24 | #livetable('riskTreatments' $columns $columnsProperties $options) | ||
| 25 | {{/velocity}} |