Commit 4d643d5a authored by Jos Schellevis's avatar Jos Schellevis

Fix DHCP6 Server GUI pages

parent 837062e2
This diff is collapsed.
...@@ -246,8 +246,8 @@ include("head.inc"); ...@@ -246,8 +246,8 @@ include("head.inc");
<tr> <tr>
<td width="22%" valign="top">&nbsp;</td> <td width="22%" valign="top">&nbsp;</td>
<td width="78%"> <td width="78%">
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input name="Submit" type="submit" class="formbtn btn btn-primary" value="<?=gettext("Save");?>" />
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> <input type="button" class="formbtn btn btn-default" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
<?php if (isset($id) && $a_maps[$id]): ?> <?php if (isset($id) && $a_maps[$id]): ?>
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
<?php endif; ?> <?php endif; ?>
......
...@@ -175,7 +175,7 @@ include("head.inc"); ...@@ -175,7 +175,7 @@ include("head.inc");
?> ?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <body>
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<script type="text/javascript" src="/javascript/row_helper.js"> <script type="text/javascript" src="/javascript/row_helper.js">
...@@ -202,12 +202,16 @@ include("head.inc"); ...@@ -202,12 +202,16 @@ include("head.inc");
//]]> //]]>
</script> </script>
<form action="services_router_advertisements.php" method="post" name="iform" id="iform"> <section class="page-content-main">
<?php if ($input_errors) print_input_errors($input_errors); ?> <div class="container-fluid">
<?php if ($savemsg) print_info_box($savemsg); ?> <div class="row">
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="router advert">
<tr><td> <?php if ($input_errors) print_input_errors($input_errors); ?>
<?php <?php if ($savemsg) print_info_box($savemsg); ?>
<section class="col-xs-12">
<?php
/* active tabs */ /* active tabs */
$tab_array = array(); $tab_array = array();
$tabscounter = 0; $tabscounter = 0;
...@@ -232,20 +236,17 @@ include("head.inc"); ...@@ -232,20 +236,17 @@ include("head.inc");
exit; exit;
} }
display_top_tabs($tab_array); display_top_tabs($tab_array);
?> ?>
</td></tr> <?php
<tr><td class="tabnavtbl"> $tab_array = array();
<?php $tab_array[] = array(gettext("DHCPv6 Server"), false, "services_dhcpv6.php?if={$if}");
$tab_array = array(); $tab_array[] = array(gettext("Router Advertisements"), true, "services_router_advertisements.php?if={$if}");
$tab_array[] = array(gettext("DHCPv6 Server"), false, "services_dhcpv6.php?if={$if}"); display_top_tabs($tab_array);
$tab_array[] = array(gettext("Router Advertisements"), true, "services_router_advertisements.php?if={$if}"); ?>
display_top_tabs($tab_array); <div class="tab-content content-box col-xs-12">
?> <form action="services_router_advertisements.php" method="post" name="iform" id="iform">
</td></tr> <div class="table-responsive">
<tr> <table class="table table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
<td>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Router Advertisements");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Router Advertisements");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
...@@ -300,13 +301,13 @@ display_top_tabs($tab_array); ...@@ -300,13 +301,13 @@ display_top_tabs($tab_array);
<div><?= htmlentities($subnets_help) ?></div> <div><?= htmlentities($subnets_help) ?></div>
<table id="maintable" summary="subnets"> <table id="maintable" summary="subnets">
<tbody> <tbody>
<?php <?php
$counter = 0; $counter = 0;
foreach ($pconfig['subnets'] as $subnet) { foreach ($pconfig['subnets'] as $subnet) {
$address_name = "subnet_address" . $counter; $address_name = "subnet_address" . $counter;
$bits_name = "subnet_bits" . $counter; $bits_name = "subnet_bits" . $counter;
list($address, $subnet) = explode("/", $subnet); list($address, $subnet) = explode("/", $subnet);
?> ?>
<tr> <tr>
<td> <td>
<input autocomplete="off" name="<?= $address_name ?>" type="text" class="formfldalias" id="<?= $address_name ?>" size="30" value="<?= htmlentities($address) ?>" /> <input autocomplete="off" name="<?= $address_name ?>" type="text" class="formfldalias" id="<?= $address_name ?>" size="30" value="<?= htmlentities($address) ?>" />
...@@ -320,13 +321,13 @@ display_top_tabs($tab_array); ...@@ -320,13 +321,13 @@ display_top_tabs($tab_array);
</select> </select>
</td> </td>
<td> <td>
<a onclick="removeRow(this); return false;" href="#"><img border="0" src="/themes/<?echo $g['theme'];?>/images/icons/icon_x.gif" alt="" title="<?=gettext("remove this entry"); ?>" /></a> <a onclick="removeRow(this); return false;" href="#" alt="" title="<?=gettext("remove this entry"); ?>"><span class="glyphicon glyphicon-remove"></span></a>
</td> </td>
</tr> </tr>
<?php <?php
$counter += 1; $counter += 1;
} }
?> ?>
<tr style="display:none"><td></td></tr> <tr style="display:none"><td></td></tr>
</tbody> </tbody>
</table> </table>
...@@ -337,8 +338,8 @@ display_top_tabs($tab_array); ...@@ -337,8 +338,8 @@ display_top_tabs($tab_array);
//]]> //]]>
</script> </script>
<div id="addrowbutton"> <div id="addrowbutton">
<a onclick="javascript:addRowTo('maintable'); add_alias_control(); return false;" href="#"><!-- <a onclick="javascript:addRowTo('maintable'); add_alias_control(); return false;" href="#" alt="" title="<?=gettext("add another entry"); ?>" ><!--
--><img border="0" src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" alt="" title="<?=gettext("add another entry"); ?>" /></a> --><span class="glyphicon glyphicon-plus"></span></a>
</div> </div>
</td> </td>
</tr> </tr>
...@@ -380,15 +381,18 @@ display_top_tabs($tab_array); ...@@ -380,15 +381,18 @@ display_top_tabs($tab_array);
<td width="22%" valign="top">&nbsp;</td> <td width="22%" valign="top">&nbsp;</td>
<td width="78%"> <td width="78%">
<input name="if" type="hidden" value="<?=$if;?>" /> <input name="if" type="hidden" value="<?=$if;?>" />
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input name="Submit" type="submit" class="formbtn btn btn-primary" value="<?=gettext("Save");?>" />
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</td> </form>
</tr> </div>
</table> </section>
</form> </div>
</div>
</section>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
......
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