3
3
"""
4
4
5
5
import django_tables2 as tables
6
+ from django .utils .translation import gettext_lazy as _
6
7
from netbox .tables import ChoiceFieldColumn , NetBoxTable , columns
7
8
8
9
from .models import AccessList , ACLExtendedRule , ACLInterfaceAssignment , ACLStandardRule
@@ -34,9 +35,9 @@ class AccessListTable(NetBoxTable):
34
35
linkify = True ,
35
36
)
36
37
assigned_object = tables .Column (
37
- linkify = True ,
38
+ verbose_name = _ ( "Assigned Host" ) ,
38
39
orderable = False ,
39
- verbose_name = "Assigned Host" ,
40
+ linkify = True ,
40
41
)
41
42
name = tables .Column (
42
43
linkify = True ,
@@ -47,7 +48,7 @@ class AccessListTable(NetBoxTable):
47
48
type = ChoiceFieldColumn ()
48
49
default_action = ChoiceFieldColumn ()
49
50
rule_count = tables .Column (
50
- verbose_name = "Rule Count" ,
51
+ verbose_name = _ ( "Rule Count" ) ,
51
52
)
52
53
tags = columns .TagColumn (
53
54
url_name = "plugins:netbox_acls:accesslist_list" ,
@@ -92,11 +93,12 @@ class ACLInterfaceAssignmentTable(NetBoxTable):
92
93
direction = ChoiceFieldColumn ()
93
94
host = tables .TemplateColumn (
94
95
template_code = COL_HOST_ASSIGNMENT ,
96
+ orderable = False ,
95
97
)
96
98
assigned_object = tables .Column (
97
- linkify = True ,
99
+ verbose_name = _ ( "Assigned Interface" ) ,
98
100
orderable = False ,
99
- verbose_name = "Assigned Interface" ,
101
+ linkify = True ,
100
102
)
101
103
tags = columns .TagColumn (
102
104
url_name = "plugins:netbox_acls:aclinterfaceassignment_list" ,
0 commit comments