Просмотр исходного кода

Closes #14707: Change 'Interface' to 'Tunnel interface' in VPN tunnel forms

Markku Leiniö 1 год назад
Родитель
Сommit
5b50920c61
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      netbox/vpn/forms/model_forms.py
  2. 1 1
      netbox/vpn/tables/tunnels.py

+ 3 - 3
netbox/vpn/forms/model_forms.py

@@ -91,7 +91,7 @@ class TunnelCreateForm(TunnelForm):
     termination1_termination = DynamicModelChoiceField(
         queryset=Interface.objects.all(),
         required=False,
-        label=_('Interface'),
+        label=_('Tunnel interface'),
         query_params={
             'device_id': '$termination1_parent',
         }
@@ -126,7 +126,7 @@ class TunnelCreateForm(TunnelForm):
     termination2_termination = DynamicModelChoiceField(
         queryset=Interface.objects.all(),
         required=False,
-        label=_('Interface'),
+        label=_('Tunnel interface'),
         query_params={
             'device_id': '$termination2_parent',
         }
@@ -238,7 +238,7 @@ class TunnelTerminationForm(NetBoxModelForm):
     )
     termination = DynamicModelChoiceField(
         queryset=Interface.objects.all(),
-        label=_('Interface'),
+        label=_('Tunnel interface'),
         query_params={
             'device_id': '$parent',
         }

+ 1 - 1
netbox/vpn/tables/tunnels.py

@@ -88,7 +88,7 @@ class TunnelTerminationTable(TenancyColumnsMixin, NetBoxTable):
         verbose_name=_('Host')
     )
     termination = tables.Column(
-        verbose_name=_('Interface'),
+        verbose_name=_('Tunnel interface'),
         linkify=True
     )
     ip_addresses = tables.ManyToManyColumn(