Commit ab32ba2c by Kálmán Viktor

network: update vlan forms and tables

parent 689b667a
...@@ -201,18 +201,14 @@ class VlanForm(ModelForm): ...@@ -201,18 +201,14 @@ class VlanForm(ModelForm):
), ),
Fieldset( Fieldset(
'IPv4', 'IPv4',
'net4', 'network4',
'prefix4',
'ipv4',
'snat_to', 'snat_to',
'snat_ip', 'snat_ip',
'dhcp_pool', 'dhcp_pool',
), ),
Fieldset( Fieldset(
'IPv6', 'IPv6',
'net6', 'network6',
'prefix6',
'ipv6',
), ),
Fieldset( Fieldset(
'Domain name service', 'Domain name service',
......
...@@ -132,7 +132,8 @@ class VlanTable(Table): ...@@ -132,7 +132,8 @@ class VlanTable(Table):
class Meta: class Meta:
model = Vlan model = Vlan
attrs = {'class': 'table table-striped table-condensed'} attrs = {'class': 'table table-striped table-condensed'}
fields = ('vid', 'name', 'interface', 'ipv4', 'ipv6', 'domain', ) fields = ('vid', 'name', 'interface', 'network4', 'network6',
'domain', )
order_by = 'vid' order_by = 'vid'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment