Commit dec1e972 authored by Jos Schellevis's avatar Jos Schellevis

Small GUI fix for interfaces

parent 6b72bcb0
...@@ -1957,20 +1957,28 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), ...@@ -1957,20 +1957,28 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
<tr style='display:none' id="show_basic_dhcpalias-address"> <tr style='display:none' id="show_basic_dhcpalias-address">
<td width="22%" valign="top" class="vncell"><?=gettext("Alias IPv4 address"); ?></td> <td width="22%" valign="top" class="vncell"><?=gettext("Alias IPv4 address"); ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<input name="alias-address" type="text" class="form-control unknown" id="alias-address" size="20" value="<?=htmlspecialchars($pconfig['alias-address']);?>" /> <table>
<select name="alias-subnet" class="selectpicker" data-style="btn-default" id="alias-subnet"> <tr>
<?php <td>
for ($i = 32; $i > 0; $i--) { <input name="alias-address" type="text" class="form-control unknown" id="alias-address" size="20" value="<?=htmlspecialchars($pconfig['alias-address']);?>" />
if($i <> 31) { </td>
echo "<option value=\"{$i}\" "; <td>
if ($i == $pconfig['alias-subnet']) echo "selected=\"selected\""; <select name="alias-subnet" class="selectpicker" data-style="btn-default" id="alias-subnet" data-width="auto">
echo ">" . $i . "</option>"; <?php
} for ($i = 32; $i > 0; $i--) {
} if($i <> 31) {
?> echo "<option value=\"{$i}\" ";
</select> if ($i == $pconfig['alias-subnet']) echo "selected=\"selected\"";
<?=gettext("The value in this field is used as a fixed alias IPv4 address by the " . echo ">" . $i . "</option>";
"DHCP client."); ?> }
}
?>
</select>
<?=gettext("The value in this field is used as a fixed alias IPv4 address by the " .
"DHCP client."); ?>
</td>
</tr>
</table>
</td> </td>
</tr> </tr>
<tr style='display:none' id="show_basic_dhcprejectlease"> <tr style='display:none' id="show_basic_dhcprejectlease">
......
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 to comment