2021-05-30 22:46:10 +00:00
|
|
|
<?php if (empty($networks)): ?>
|
2024-10-24 07:06:13 +00:00
|
|
|
<div class="col-md-6 ms-6">
|
2020-12-06 08:27:18 +00:00
|
|
|
<p class="lead text-center"><?php echo _('No Wifi stations found') ?></p>
|
2021-04-30 13:40:47 +00:00
|
|
|
<p class="text-center"><?php echo _("Click 'Rescan' to search for nearby Wifi stations.") ?></p>
|
2021-05-08 18:40:19 +00:00
|
|
|
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
2021-04-30 13:40:47 +00:00
|
|
|
<p class="text-center"><?php echo _("Click 'Reinitialize' to force reinitialize <code>wpa_supplicant</code>.") ?></p>
|
2021-04-30 07:38:49 +00:00
|
|
|
<form method="POST" action="wpa_conf" name="wpa_conf_form" class="row">
|
2021-05-08 18:40:19 +00:00
|
|
|
<?php echo CSRFTokenFieldTag() ?>
|
2024-10-24 07:06:13 +00:00
|
|
|
<div class="col-xs me-3 mb-3">
|
|
|
|
<input type="submit" class="btn btn-warning btn-block float-end" name="wpa_reinit" value="<?php echo _("Reinitialize"); ?>" />
|
2021-04-30 07:38:49 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2021-05-08 18:40:19 +00:00
|
|
|
<?php endif ?>
|
2020-12-06 08:27:18 +00:00
|
|
|
</div>
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php endif ?>
|
2019-08-08 00:10:40 +00:00
|
|
|
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php if (!empty($connected)): ?>
|
|
|
|
<h4 class="h-underlined my-3"><?php echo _("Connected") ?></h4>
|
2021-06-01 02:01:10 +00:00
|
|
|
<div class="card-grid">
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php foreach ($connected as $network) : ?>
|
2021-08-31 14:57:46 +00:00
|
|
|
<?php $index = isset($network['index']) ? $network['index'] : -1; ?>
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php echo renderTemplate("wifi_stations/network", compact('network', 'index')) ?>
|
|
|
|
<?php $index++; ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (!empty($known)): ?>
|
|
|
|
<h4 class="h-underlined my-3"><?php echo _("Known") ?></h4>
|
2021-06-01 02:01:10 +00:00
|
|
|
<div class="card-grid">
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php foreach ($known as $network) : ?>
|
2021-08-31 14:57:46 +00:00
|
|
|
<?php $index = isset($network['index']) ? $network['index'] : -1; ?>
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php echo renderTemplate("wifi_stations/network", compact('network', 'index')) ?>
|
|
|
|
<?php $index++; ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (!empty($nearby)): ?>
|
|
|
|
<h4 class="h-underlined my-3"><?php echo _("Nearby") ?></h4>
|
2021-06-01 02:01:10 +00:00
|
|
|
<div class="card-grid">
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php foreach ($nearby as $network) : ?>
|
2021-08-31 14:57:46 +00:00
|
|
|
<?php $index = isset($network['index']) ? $network['index'] : -1; ?>
|
2021-05-30 22:46:10 +00:00
|
|
|
<?php echo renderTemplate("wifi_stations/network", compact('network', 'index')) ?>
|
|
|
|
<?php $index++; ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|