Wiki source code of Supplier Contracts
Last modified by Lee Pedley on 2026/09/23 11:18
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | {{html wiki="true" clean="false"}} | ||
| 3 | <div class="box infomessage"><strong>Supplier Contracts</strong><br/>Contract and agreement register. Store the signed contract as an attachment on the record and track owner, renewal/expiry, notice period and security/data-protection obligations.<br/><small>Use the structured button below rather than XWiki's general Create button.</small></div> | ||
| 4 | <form action="$xwiki.getURL('Supplier Contracts.WebHome','create')" method="get" style="display:inline-block;margin:1em 0"><input type="hidden" name="templateprovider" value="Supplier Contracts.Code.Supplier ContractsTemplateProvider"/><button type="submit" class="btn btn-primary">Add New Contract</button></form> <a class="btn btn-default" href="$xwiki.getURL('Suppliers and Third Parties.WebHome','view')">Suppliers</a> <a class="btn btn-default" href="$xwiki.getURL('ISMS.SupplierOverview','view')">Supplier Overview</a> | ||
| 5 | {{/html}} | ||
| 6 | #set ($columnsProperties = { | ||
| 7 | 'doc.title': {"link":"view"}, | ||
| 8 | 'supplier': {"html":true}, | ||
| 9 | 'contractOwner': {"html":true}, | ||
| 10 | '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]} | ||
| 11 | }) | ||
| 12 | #set ($options = { | ||
| 13 | 'className': 'Supplier Contracts.Code.Supplier ContractsClass', | ||
| 14 | 'translationPrefix': 'suppliercontracts.livetable.', | ||
| 15 | 'tagCloud': false, | ||
| 16 | 'rowCount': 25, | ||
| 17 | 'maxPages': 15, | ||
| 18 | 'selectedColumn': 'doc.title', | ||
| 19 | 'defaultOrder': 'asc' | ||
| 20 | }) | ||
| 21 | #set ($columns = ['contractId', 'doc.title', 'supplier', 'contractType', 'contractOwner', 'status', 'expiryDate', 'renewalDate', 'nextReviewDate', '_actions']) | ||
| 22 | #livetable('suppliercontracts' $columns $columnsProperties $options) | ||
| 23 | {{/velocity}} |