diff --git a/netbox_access_lists/models.py b/netbox_access_lists/models.py index 2b28748..0d0d6b6 100644 --- a/netbox_access_lists/models.py +++ b/netbox_access_lists/models.py @@ -52,7 +52,8 @@ class AccessList(NetBoxModel): default_action = models.CharField( default=AccessListActionChoices.ACTION_DENY, max_length=30, - choices=AccessListActionChoices + choices=AccessListActionChoices, + verbose_name='Default Action' ) comments = models.TextField( blank=True @@ -79,6 +80,7 @@ class AccessListRule(NetBoxModel): on_delete=models.CASCADE, related_name='rules', to=AccessList, + verbose_name='Access List' ) index = models.PositiveIntegerField() protocol = models.CharField( @@ -92,11 +94,13 @@ class AccessListRule(NetBoxModel): on_delete=models.PROTECT, related_name='+', to='ipam.Prefix', + verbose_name='Source Prefix' ) source_ports = ArrayField( base_field=models.PositiveIntegerField(), blank=True, null=True, + verbose_name='Soure Ports' ) destination_prefix = models.ForeignKey( blank=True, @@ -104,11 +108,13 @@ class AccessListRule(NetBoxModel): on_delete=models.PROTECT, related_name='+', to='ipam.Prefix', + verbose_name='Destination Prefix' ) destination_ports = ArrayField( base_field=models.PositiveIntegerField(), blank=True, null=True, + verbose_name='Destination Ports' ) action = models.CharField( choices=AccessListActionChoices, diff --git a/netbox_access_lists/tables.py b/netbox_access_lists/tables.py index 1f5ba54..aa6b5e9 100644 --- a/netbox_access_lists/tables.py +++ b/netbox_access_lists/tables.py @@ -13,7 +13,9 @@ class AccessListTable(NetBoxTable): ) type = ChoiceFieldColumn() default_action = ChoiceFieldColumn() - rule_count = tables.Column() + rule_count = tables.Column( + verbose_name='Rule Count' + ) tags = columns.TagColumn( url_name='plugins:netbox_access_lists:accesslist_list' ) diff --git a/netbox_access_lists/templates/netbox_access_lists/accesslist.html b/netbox_access_lists/templates/netbox_access_lists/accesslist.html index 64ca903..43e6d23 100644 --- a/netbox_access_lists/templates/netbox_access_lists/accesslist.html +++ b/netbox_access_lists/templates/netbox_access_lists/accesslist.html @@ -54,7 +54,7 @@
| Remark | -{{ object.get_remark_display }} | +{{ object.get_remark_display|placeholder }} |
|---|---|---|
| Protocol | -{{ object.get_protocol_display }} | +{{ object.get_protocol_display|placeholder }} |
| Source Prefix |