interfaces: display of prefix ID is wrong here; closes #2622

We still have the validation on save which is correct.  While
here improve the help text.
This commit is contained in:
Franco Fichtner 2018-09-03 23:09:15 +02:00
parent 92fc44c365
commit 91ecc980bd

View File

@ -2839,9 +2839,7 @@ include("head.inc");
$track6_prefix_id_hex = !empty($pconfig['track6-prefix-id--hex']) ? $pconfig['track6-prefix-id--hex']: sprintf("%x", $pconfig['track6-prefix-id']);?>
<input name="track6-prefix-id--hex" type="text" id="track6-prefix-id--hex" value="<?= $track6_prefix_id_hex ?>" />
<div class="hidden" data-for="help_for_track6-prefix-id">
<?= gettext("The value in this field is the (Delegated) IPv6 prefix id. This determines the configurable network ID based on the dynamic IPv6 connection"); ?>
<br />
<?= sprintf(gettext("Enter a hexadecimal value between %x and %x here, default value is 0."), 0, pow(2, calculate_ipv6_delegation_length($pconfig['track6-interface'])) - 1); ?>
<?= gettext('The value in this field is the delegated IPv6 prefix ID. This determines the configurable /64 network ID based on the dynamic IPv6 connection.') ?>
</div>
</td>
</tr>