This commit is contained in:
Bill Zimmerman 2020-09-23 21:50:15 +02:00
commit 840f89247a
2 changed files with 41 additions and 32 deletions

View File

@ -21,7 +21,7 @@
<form method="POST" action="?page=wpa_conf" name="wpa_conf_form" class="row">
<?php echo CSRFTokenFieldTag() ?>
<input type="hidden" name="client_settings" ?>
<div class="js-wifi-stations loading-spinner"></div>
<div class="row js-wifi-stations w-100 loading-spinner"></div>
</form>
</div><!-- ./ card-body -->
<div class="card-footer"><?php echo _("<strong>Note:</strong> WEP access points appear as 'Open'. RaspAP does not currently support connecting to WEP"); ?></div>

View File

@ -3,13 +3,21 @@
<p class="text-center"><?php echo _('Click "Rescan" to search for nearby Wifi stations.') ?></p>
<?php endif ?>
<?php $index = 0; ?>
<div class="row ml-1 mr-1">
<div class="row ml-1 mr-1 w-100">
<?php $networks = array_slice($networks, 1,1); ?>
<?php
if (count($networks) == 1) {
$prop_col = "col-sm-12";
$prop_w = "w-50";
} else {
$prop_col = "col-sm-6";
$prop_w = "w-100";
}
?>
<?php foreach ($networks as $ssid => $network) : ?>
<div class="col-sm-6 align-items-stretch mb-3">
<div class="card h-100">
<div class="<?php echo $prop_col; ?> align-items-stretch mb-3">
<div class="card h-100 <?php echo $prop_w; ?>">
<div class="card-body">
<input type="hidden" name="ssid<?php echo $index ?>" value="<?php echo htmlentities($ssid, ENT_QUOTES) ?>" />
<?php if (strlen($ssid) == 0) {
$ssid = "(unknown)";
@ -95,3 +103,4 @@
<?php $index += 1; ?>
<?php endforeach ?>
</div><!-- /.row -->