Commit 7557f6c4 by Őry Máté

network: add titles to magic buttons

parent b7cfe6a7
...@@ -123,9 +123,11 @@ class HostForm(ModelForm): ...@@ -123,9 +123,11 @@ class HostForm(ModelForm):
_('Network'), _('Network'),
'vlan', 'vlan',
FieldWithButtons('ipv4', StrictButton( FieldWithButtons('ipv4', StrictButton(
'<i class="fa fa-magic"></i>', css_id="ipv4-magic")), '<i class="fa fa-magic"></i>', css_id="ipv4-magic",
title=_("Generate random address."))),
FieldWithButtons('ipv6', StrictButton( FieldWithButtons('ipv6', StrictButton(
'<i class="fa fa-magic"></i>', css_id="ipv6-magic")), '<i class="fa fa-magic"></i>', css_id="ipv6-magic",
title=_("Generate IPv6 pair of IPv4 address."))),
'shared_ip', 'shared_ip',
'external_ipv4', 'external_ipv4',
), ),
...@@ -255,7 +257,8 @@ class VlanForm(ModelForm): ...@@ -255,7 +257,8 @@ class VlanForm(ModelForm):
_('IPv6'), _('IPv6'),
'network6', 'network6',
FieldWithButtons('ipv6_template', StrictButton( FieldWithButtons('ipv6_template', StrictButton(
'<i class="fa fa-magic"></i>', css_id="ipv6-tpl-magic")), '<i class="fa fa-magic"></i>', css_id="ipv6-tpl-magic",
title=_("Generate sensible template."))),
'host_ipv6_prefixlen', 'host_ipv6_prefixlen',
), ),
Fieldset( Fieldset(
......
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