Commit aac98668 authored by Franco Fichtner's avatar Franco Fichtner

src: second part of restyle done

(cherry picked from commit 9989097d)
parent eed12b6e
......@@ -86,55 +86,48 @@ include("head.inc");
<body>
<?php include("fbegin.inc"); ?>
<form id="iform" name="iform" method="post">
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<?php if (isset($savemsg)) print_info_box($savemsg);?>
<?php if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors);?>
<section class="col-xs-12">
<div class="content-box">
<header class="content-box-head container-fluid">
<h3><?= gettext('Test a server') ?></h3>
</header>
<div class="content-box-main">
<div class="table-responsive">
<table class="table table-striped __nomb">
<tbody>
<tr>
<td><?=gettext("Authentication Server"); ?></td>
<td>
<select name="authmode" id="authmode" class="form-control" >
<div class="content-box tab-content">
<form id="iform" name="iform" method="post">
<table class="table table-striped __nomb">
<tbody>
<tr>
<td width="22%"><?=gettext("Authentication Server"); ?></td>
<td width="78%">
<select name="authmode" id="authmode" class="form-control" >
<?php
foreach (auth_get_authserver_list() as $auth_server_id => $auth_server):?>
<option value="<?=$auth_server_id;?>" <?=$auth_server['name'] == $pconfig['authmode'] ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($auth_server['name']);?>
</option>
foreach (auth_get_authserver_list() as $auth_server_id => $auth_server):?>
<option value="<?=$auth_server_id;?>" <?=$auth_server['name'] == $pconfig['authmode'] ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($auth_server['name']);?>
</option>
<?php
endforeach; ?>
</select>
</td>
</tr>
<tr>
<td><?=gettext("Username"); ?></td>
<td><input type="text" name="username" value="<?=htmlspecialchars($pconfig['username']);?>"></td>
</tr>
<tr>
<td><?=gettext("Password"); ?></td>
<td><input type="password" name="password" value="<?=htmlspecialchars($pconfig['password']);?>"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input id="save" name="save" type="submit" class="btn btn-primary" value="<?=gettext("Test");?>" /></td>
</tr>
</tbody>
</table>
</div>
</div>
endforeach; ?>
</select>
</td>
</tr>
<tr>
<td width="22%"><?=gettext("Username"); ?></td>
<td width="78%"><input type="text" name="username" value="<?=htmlspecialchars($pconfig['username']);?>"></td>
</tr>
<tr>
<td width="22%"><?=gettext("Password"); ?></td>
<td width="78%"><input type="password" name="password" value="<?=htmlspecialchars($pconfig['password']);?>"></td>
</tr>
<tr>
<td width="22%">&nbsp;</td>
<td width="78%"><input id="save" name="save" type="submit" class="btn btn-primary" value="<?=gettext("Test");?>" /></td>
</tr>
</tbody>
</table>
</form>
</div>
</section>
</div>
</div>
</section>
</form>
<?php include('foot.inc');?>
......@@ -357,7 +357,9 @@ $main_buttons = array(
?>
<?php ?>
<tr>
<td colspan="5"></td>
<td colspan="5">
<?=sprintf(gettext('You can check the status of your CARP Virtual IPs and interfaces %shere%s.'),'<a href="carp_status.php">','</a>')?></span>
</td>
<td>
<a type="submit" id="move_<?=$i;?>" name="move_<?=$i;?>_x" data-toggle="tooltip" title="<?=gettext("move selected virtual IPs to end");?>" class="act_move btn btn-default btn-xs">
<span class="glyphicon glyphicon-arrow-left"></span>
......@@ -370,11 +372,6 @@ $main_buttons = array(
</a>
</td>
</tr>
<tr>
<td colspan="6">
<?=sprintf(gettext('You can check the status of your CARP Virtual IPs and interfaces %shere%s.'),'<a href="carp_status.php">','</a>')?></span>
</td>
</tr>
</tbody>
</table>
</form>
......
......@@ -448,12 +448,9 @@ include("head.inc");
</td>
</tr>
<tr>
<td colspan="3">
<?= gettext('Interfaces that are configured as members of a LAGG interface will not be shown.') ?>
</td>
</tr>
<tr>
<td colspan="2"></td>
<td colspan="2">
<?= gettext('Interfaces that are configured as members of a LAGG interface will not be shown.') ?>
</td>
<td>
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
</td>
......
......@@ -110,10 +110,10 @@ include("head.inc");
<div class="content-box">
<form method="post" name="iform" id="iform">
<?php
if ($dhcpd_enabled): ?>
<p><?= gettext('DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.') ?></p>
<?php
else: ?>
if ($dhcpd_enabled) {
print_content_box(gettext('DHCP Server is currently enabled. Cannot enable the DHCP Relay service while the DHCP Server is enabled on any interface.'));
} else {
?>
<div>
<div class="table-responsive">
<table class="table table-striped">
......@@ -178,7 +178,7 @@ include("head.inc");
</table>
</div>
</div>
<?php endif; ?>
<?php } ?>
</form>
</div>
</section>
......
......@@ -563,9 +563,6 @@ include("head.inc");
</div>
</td>
</tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
......
......@@ -680,15 +680,6 @@ else :
<th width="10%" class="list"></th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">
<p>
<?=gettext("Additional authentication servers can be added here.");?>
</p>
</td>
</tr>
</tfoot>
<tbody>
<?php
$i = 0;
......@@ -715,6 +706,11 @@ endif; ?>
<?php
$i++;
endforeach;?>
<tr>
<td colspan="4">
<?=gettext("Additional authentication servers can be added here.");?>
</td>
</tr>
</tbody>
</table>
</form>
......
......@@ -1309,8 +1309,7 @@ $( document ).ready(function() {
endforeach; ?>
<tr>
<td>&nbsp;</td>
<td colspan="3"><?=gettext("Note: You can only delete a certificate if it is not currently in use.");?></td>
<td colspan="4"><?=gettext("Note: You can only delete a certificate if it is not currently in use.");?></td>
</tr>
</tbody>
</table>
......
......@@ -613,15 +613,6 @@ include("head.inc");
<td></td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5">
<p>
<?=gettext("Additional Certificate Revocation Lists can be added here.");?>
</p>
</td>
</tr>
</tfoot>
<tbody>
<?php
// Map CRLs to CAs
......@@ -687,9 +678,13 @@ include("head.inc");
<?php
endforeach;
endif; ?>
<tr><td colspan="5">&nbsp;</td></tr>
<?php
endforeach; ?>
<tr>
<td colspan="5">
<?=gettext("Additional Certificate Revocation Lists can be added here.");?>
</td>
</tr>
</tbody>
</table>
</form>
......
......@@ -214,15 +214,12 @@ $( document ).ready(function() {
</tr>
<?php $i++;
endforeach; ?>
</tbody>
<tfoot>
<tr class="hidden-xs">
<td colspan="5">
<b><?=gettext("Note:");?></b>
<?=gettext("Remember to use these Gateway Groups in firewall rules in order to enable load balancing, failover, or policy-based routing. Without rules directing traffic into the Gateway Groups, they will not be used.");?>
</td>
</tr>
</tfoot>
</tbody>
</table>
</div>
</form>
......
......@@ -519,12 +519,10 @@ $( document ).ready(function() {
</tr>
<tr class="hidden-xs">
<td colspan="4">
<p class="col-xs-12 col-sm-10">
<?=gettext('Additional webConfigurator groups can be added here. ' .
'Group permissions can be assigned which are inherited by users who are members of the group. ' .
'An icon that appears grey indicates that it is a system defined object. ' .
'Some system object properties can be modified but they cannot be deleted.');?>
</p>
</td>
</tr>
</tfoot>
......
......@@ -321,7 +321,6 @@ endif; ?>
</tr>
<tr>
<td colspan="7">
<strong><?= gettext('Note:') ?></strong><br/>
<?=gettext("Do not enter static routes for networks assigned on any interface of this firewall. Static routes are only used for networks reachable via a different router, and not reachable via your default gateway.");?>
</td>
</tr>
......
......@@ -978,10 +978,22 @@ $( document ).ready(function() {
$i++;
endforeach;
?>
</tbody>
<tfoot>
<tr>
<td colspan="3"></td>
<td colspan="3">
<table>
<tr>
<td></td>
<td width="20px"></td>
<td width="20px"><span class="glyphicon glyphicon-user text-danger"></span></td>
<td width="200px"><?= gettext('System Administrator') ?></td>
<td width="20px"><span class="glyphicon glyphicon-user text-muted"></span></td>
<td width="200px"><?= gettext('Disabled User') ?></td>
<td width="20px"><span class="glyphicon glyphicon-user text-info"></span></td>
<td width="200px"><?= gettext('Normal User') ?></td>
<td></td>
</tr>
</table>
</td>
<td>
<a href="system_usermanager.php?act=new" class="btn btn-default btn-xs"
title="<?=gettext("add user");?>" data-toggle="tooltip">
......@@ -1002,7 +1014,6 @@ $( document ).ready(function() {
</tr>
<tr>
<td colspan="4">
<p class="col-xs-12 col-sm-10">
<?=gettext("Additional users can be added here. User permissions for accessing " .
"the webConfigurator can be assigned directly or inherited from group memberships. " .
"An icon that appears grey indicates that it is a system defined object. " .
......@@ -1010,27 +1021,9 @@ $( document ).ready(function() {
<br /><br />
<?=gettext("Accounts created here are also used for other parts of the system " .
"such as OpenVPN, IPsec, and Captive Portal.");?>
</p>
</td>
</tr>
<tr>
<td colspan="4">
<table>
<tr>
<td></td>
<td width="20px"></td>
<td width="20px"><span class="glyphicon glyphicon-user text-danger"></span></td>
<td width="200px"><?= gettext('System Administrator') ?></td>
<td width="20px"><span class="glyphicon glyphicon-user text-muted"></span></td>
<td width="200px"><?= gettext('Disabled User') ?></td>
<td width="20px"><span class="glyphicon glyphicon-user text-info"></span></td>
<td width="200px"><?= gettext('Normal User') ?></td>
<td></td>
</tr>
</table>
</td>
</tr>
</tfoot>
</tbody>
</table>
</form>
<?php
......
......@@ -172,7 +172,9 @@ foreach ($config['ipsec']['mobilekey'] as $secretent) :
<?php $i++;
endforeach; ?>
<tr>
<td colspan="2"></td>
<td colspan="2">
<?=gettext("PSK for any user can be set by using an identifier of any/ANY") ?>
</td>
<td>
<a href="vpn_ipsec_keys_edit.php" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a>
</td>
......@@ -180,12 +182,6 @@ endforeach; ?>
</table>
</div>
</form>
<div class="container-fluid">
<span class="text-danger">
<strong><?=gettext("Note"); ?>:<br /></strong>
</span>
<?=gettext("PSK for any user can be set by using an identifier of any/ANY");?>
</div>
</div>
</section>
</div>
......
......@@ -374,7 +374,6 @@ include("head.inc");
</tr>
<tr>
<td colspan="2">
<strong class="text-danger"><?=gettext("Note:");?></strong><br />
<?=gettext("Don't forget to add a firewall rule to permit traffic from L2TP clients!");?>
</td>
</tr>
......
......@@ -558,10 +558,8 @@ legacy_html_escape_form_data($pconfig);
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="78%">
<span class="text-danger"><strong><?=gettext("Note"); ?>:<br /></strong></span>
<?=gettext("don't forget to add a firewall rule to permit " ."traffic from PPPoE clients!"); ?>
<td colspan="2">
<?=gettext("Don't forget to add a firewall rule to permit traffic from PPPoE clients."); ?>
</td>
</tr>
</table>
......
......@@ -451,9 +451,8 @@ include("head.inc");
</td>
</tr>
<tr>
<td></td>
<td><?=sprintf(gettext("Note: don't forget to %sadd a firewall rule%s to permit traffic from PPTP clients!"),'<a href="firewall_rules.php?if=pptp">','</a>') ?></td>
</tr>
<td colspan="2"><?= gettext("Don't forget to add a firewall rule to permit traffic from PPTP clients.") ?></td>
</tr>
</table>
</div>
</form>
......
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