diff options
Diffstat (limited to 'webui_templates/system_edit.tmpl')
-rw-r--r-- | webui_templates/system_edit.tmpl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/webui_templates/system_edit.tmpl b/webui_templates/system_edit.tmpl index 42eb3911..d79c9c04 100644 --- a/webui_templates/system_edit.tmpl +++ b/webui_templates/system_edit.tmpl @@ -46,10 +46,9 @@ function intf_update_visibility() { is_slave=document.getElementById("bonding_is_slave").checked is_master=document.getElementById("bonding_is_master").checked - is_static=document.getElementById("static_true").checked intf_enable_field("static",!is_slave) - intf_enable_field("ipaddress",(!is_slave) && is_static) + intf_enable_field("ipaddress",(!is_slave)) intf_enable_field("subnet",(!is_slave) && is_static) intf_enable_field("dns_name",!is_slave) intf_enable_field("static_routes",!is_slave) @@ -270,7 +269,8 @@ function build_interface_table() interface_table['$iname']["ipaddress"] = "$system.interfaces[$iname]['ip_address']" interface_table['$iname']["subnet"] = "$system.interfaces[$iname]['subnet']" interface_table['$iname']["dns_name"] = "$system.interfaces[$iname]['dns_name']" - interface_table['$iname']["static_routes"] = "$system.interfaces[$iname]['static_routes']" + #set joined = " ".join($system.interfaces[$iname]['static_routes']) + interface_table['$iname']["static_routes"] = "$joined" interface_table['$iname']["dhcptag"] = "$system.interfaces[$iname]['dhcp_tag']" interface_table['$iname']["virtbridge"] = "$system.interfaces[$iname]['virt_bridge']" interface_table['$iname']["present"] = "1" @@ -547,7 +547,7 @@ function page_onload() { <input type="text" size="64" style="width: 150px;" name="hostname" id="hostname" value="$system.hostname" /> #else <input type="text" size="64" style="width: 150px;" name="hostname" id="hostname" /> - #end + #end if <p class="context-tip">Ex: "vanhalen.example.org". Used for /etc/sysconfig/network.</p> </td> </tr> @@ -561,7 +561,7 @@ function page_onload() { <input type="text" size="64" style="width: 150px;" name="gateway" id="gateway" /> #else <input type="text" size="64" style="width: 150px;" name="gateway" id="gateway" value="$system.gateway" /> - #end + #end if <p class="context-tip">Ex: "192.168.1.11". For use with static IP configs.</p> </td> </tr> @@ -573,10 +573,11 @@ function page_onload() { </td> <td class="netedit"> #if $system - <input type="text" name="name_servers" id="name_servers" value="$system.name_servers"> + #set joined = " ".join($profile.name_servers) + <input type="text" name="name_servers" id="name_servers" value="$joined"> #else <input type="text" name="name_servers" id="name_servers" value="<<inherit>>"> - #end + #end if <p class="context-tip">Name servers, space delimited, if not provided by DHCP</p> </td> </tr> @@ -904,7 +905,7 @@ function page_onload() { <td class="nicedit"> <label for="static_routes">Static Routes</label> </td> - <td class="static_routes"> + <td class="nicedit"> <input type="text" size="128" style="width: 150px;" name="static_routes" id="static_routes" /> <p class="context-tip">optional list of ipaddress:netmask:gateway, space delimited</p> </td> |