diff --git a/CHANGELOG.md b/CHANGELOG.md index ab02a89..50deb18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * [142](https://github.com/mlebreuil/netbox-contract/issues/142) Gives the option to enter contract yearly recuring costs instead of only monthly recuring costs. Corresponding value is used to calculate the invoices amount without rounding approximations. +* [148](https://github.com/mlebreuil/netbox-contract/issues/148) Update tables format to match the new Netbox UI design. ### Version 2.2.0 diff --git a/src/netbox_contract/tables.py b/src/netbox_contract/tables.py index 95ea92b..acbfe06 100644 --- a/src/netbox_contract/tables.py +++ b/src/netbox_contract/tables.py @@ -42,14 +42,15 @@ class Meta(NetBoxTable.Meta): class ContractAssignmentObjectTable(NetBoxTable): contract = tables.Column(linkify=True) actions = columns.ActionsColumn(actions=('edit', 'delete')) - contract__external_partie_object = tables.Column(linkify=True) + contract__external_partie_object = tables.Column( + verbose_name='Partner', linkify=True + ) class Meta(NetBoxTable.Meta): model = ContractAssignment fields = ( 'pk', 'contract', - 'contract__external_partie_object_type', 'contract__external_partie_object', 'contract__status', 'contract__start_date', diff --git a/src/netbox_contract/templates/contract_assignments_bottom.html b/src/netbox_contract/templates/contract_assignments_bottom.html index a03fcc6..b919c19 100644 --- a/src/netbox_contract/templates/contract_assignments_bottom.html +++ b/src/netbox_contract/templates/contract_assignments_bottom.html @@ -3,18 +3,20 @@