Commit c7362cab authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy/dhcp) add all_help button

(cherry picked from commit 654e3d4d)
parent ff33b909
...@@ -690,11 +690,18 @@ include("head.inc"); ...@@ -690,11 +690,18 @@ include("head.inc");
<form action="services_dhcp.php" method="post" name="iform" id="iform"> <form action="services_dhcp.php" method="post" name="iform" id="iform">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tr>
<td width="22%" valign="top"></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<?php <?php
if (!isset($pool) && !($act == "newpool")): ?> if (!isset($pool) && !($act == "newpool")): ?>
<tr> <tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td>
<td width="78%"> <td>
<input name="enable" id="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> /> <input name="enable" id="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> />
<strong><?php printf(gettext("Enable DHCP server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong> <strong><?php printf(gettext("Enable DHCP server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong>
</td> </td>
...@@ -705,7 +712,7 @@ include("head.inc"); ...@@ -705,7 +712,7 @@ include("head.inc");
<td colspan="2"><?php echo gettext("Editing Pool-Specific Options. To return to the Interface, click its tab above."); ?></td> <td colspan="2"><?php echo gettext("Editing Pool-Specific Options. To return to the Interface, click its tab above."); ?></td>
</tr> </tr>
<tr> <tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Pool Description");?></td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Pool Description");?></td>
<td> <td>
<input name="descr" type="text" id="descr" value="<?=$pconfig['descr'];?>" /> <input name="descr" type="text" id="descr" value="<?=$pconfig['descr'];?>" />
</td> </td>
......
...@@ -335,11 +335,15 @@ include("head.inc"); ...@@ -335,11 +335,15 @@ include("head.inc");
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td colspan="2"><?=gettext("Static DHCP Mapping");?></td> <td width="22%" valign="top"><strong><?=gettext("Static DHCP Mapping");?></strong></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr> </tr>
<tr> <tr>
<td width="22%"><a id="help_for_mac" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("MAC address");?></td> <td><a id="help_for_mac" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("MAC address");?></td>
<td width="78%"> <td>
<input name="mac" id="mac" type="text" value="<?=$pconfig['mac'];?>" /> <input name="mac" id="mac" type="text" value="<?=$pconfig['mac'];?>" />
<?php <?php
$ip = getenv('REMOTE_ADDR'); $ip = getenv('REMOTE_ADDR');
......
...@@ -114,15 +114,19 @@ include("head.inc"); ...@@ -114,15 +114,19 @@ include("head.inc");
<p><?= gettext('DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.') ?></p> <p><?= gettext('DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.') ?></p>
<?php <?php
else: ?> else: ?>
<header class="content-box-head container-fluid"> <div>
<h3><?=gettext("DHCP Relay configuration"); ?></h3>
</header>
<div class="content-box-main">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext('Enable') ?></td> <td width="22%" valign="top"><strong><?=gettext("DHCP Relay configuration"); ?></strong></td>
<td width="78%"> <td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext('Enable') ?></td>
<td>
<input name="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> onclick="enable_change(false)" /> <input name="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> onclick="enable_change(false)" />
</td> </td>
</tr> </tr>
......
...@@ -471,8 +471,15 @@ include("head.inc"); ...@@ -471,8 +471,15 @@ include("head.inc");
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?></td> <td width="22%" valign="top"></td>
<td width="78%"> <td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?></td>
<td>
<input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> /> <input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> />
<strong><?php printf(gettext("Enable DHCPv6 server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong> <strong><?php printf(gettext("Enable DHCPv6 server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong>
</td> </td>
......
...@@ -169,11 +169,15 @@ include("head.inc"); ...@@ -169,11 +169,15 @@ include("head.inc");
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td colspan="2"><?=gettext("Static DHCPv6 Mapping");?></td> <td width="22%" valign="top"><strong><?=gettext("Static DHCPv6 Mapping");?></strong></td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr> </tr>
<tr> <tr>
<td width="22%"><a id="help_for_duid" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DUID Identifier");?></td> <td><a id="help_for_duid" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("DUID Identifier");?></td>
<td width="78%"> <td>
<input name="duid" type="text" value="<?=$pconfig['duid'];?>" /> <input name="duid" type="text" value="<?=$pconfig['duid'];?>" />
<div class="hidden" for="help_for_duid"> <div class="hidden" for="help_for_duid">
<?=gettext("Enter a DUID Identifier in the following format: ");?><br /> <?=gettext("Enter a DUID Identifier in the following format: ");?><br />
......
...@@ -113,15 +113,19 @@ include("head.inc"); ...@@ -113,15 +113,19 @@ include("head.inc");
<?php if ($dhcpd_enabled): ?> <?php if ($dhcpd_enabled): ?>
<p><?= gettext('DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.') ?></p> <p><?= gettext('DHCPv6 Server is currently enabled. Cannot enable the DHCPv6 Relay service while the DHCPv6 Server is enabled on any interface.') ?></p>
<?php else: ?> <?php else: ?>
<header class="content-box-head container-fluid"> <div>
<h3><?=gettext("DHCPv6 Relay configuration"); ?></h3>
</header>
<div class="content-box-main ">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<td width="22%"><i class="fa fa-info-circle text-muted"></i> <?= gettext('Enable') ?></td> <td width="22%" valign="top"><strong><?=gettext("DHCPv6 Relay configuration"); ?></strong></td>
<td width="78%"> <td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
<i class="fa fa-toggle-off text-danger" style="cursor: pointer;" id="show_all_help_page" type="button"></i></a>
</td>
</tr>
<tr>
<td><i class="fa fa-info-circle text-muted"></i> <?= gettext('Enable') ?></td>
<td>
<input name="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?>/> <input name="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?>/>
<strong><?=gettext("Enable DHCPv6 relay on interface");?></strong> <strong><?=gettext("Enable DHCPv6 relay on interface");?></strong>
</td> </td>
......
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