Project

General

Profile

« Previous | Next » 

Revision a95e602a

Added by Marek Hulán about 7 years ago

Fixes #18783,#18804 - replace inline helps with label helps

View differences:

app/views/subnets/_fields.html.erb
<%= text_f f, :dns_secondary, :help_inline => _("Optional: Secondary DNS for this subnet") %>
<%= selectable_f f, :ipam, subnet_ipam_modes(f.object.type), {}, :data => {'disable-auto-suggest-on' => [IPAM::MODES[:none], IPAM::MODES[:eui64]]},
:label => _('IPAM'),
:help_inline => popover(
_("IP Address Management"),
_("You can select one of the IPAM modes supported by the selected IP protocol:<br/>" +
:label_help => _("You can select one of the IPAM modes supported by the selected IP protocol:<br/>" +
"<ul><li><strong>DHCP</strong> - will manage the IP on DHCP through assigned DHCP proxy, auto-suggested IPs come from DHCP <em>(IPv4)</em></li>" +
"<li><strong>Internal DB</strong> - use internal DB to auto-suggest free IP based on other interfaces on same subnet respecting range if specified, useful mainly with static boot mode <em>(IPv4, IPv6)</em></li>" +
"<li><strong>EUI-64</strong> - will assign the IPv6 address based on the MAC address of the interface <em>(IPv6)</em></li>" +
"<li><strong>None</strong> - leave IP management solely on user, no auto-suggestion <em>(IPv4, IPv6)</em></li></ul>"),
:'data-placement' => "top"
).html_safe %>
"<li><strong>None</strong> - leave IP management solely on user, no auto-suggestion <em>(IPv4, IPv6)</em></li></ul>").html_safe,
:label_help_options => { :title => _("IP Address Management"), :'data-placement' => 'top' }%>
<div id='ipam_options' class ='<%= f.object.ipam_needs_range? ? "" : "hide" %>'>
<%= text_f f, :from, :help_inline => _("Optional: Starting IP Address for IP auto suggestion") %>
<%= text_f f, :to, :help_inline => _("Optional: Ending IP Address for IP auto suggestion") %>

Also available in: Unified diff