Add wpa_reinit button to template

This commit is contained in:
billz 2021-04-30 08:38:49 +01:00
parent 56abf95c5b
commit d1fdbd9f25

View file

@ -2,7 +2,15 @@
<div class="col-md-6 ml-6"> <div class="col-md-6 ml-6">
<p class="lead text-center"><?php echo _('No Wifi stations found') ?></p> <p class="lead text-center"><?php echo _('No Wifi stations found') ?></p>
<p class="text-center"><?php echo _('Click "Rescan" to search for nearby Wifi stations.') ?></p> <p class="text-center"><?php echo _('Click "Rescan" to search for nearby Wifi stations.') ?></p>
<p class="text-center"><?php echo _('Click "Reinitialize" to force reinitialize <code>wpa_supplicant</code>.') ?></p> <p class="text-center"><?php echo _('Click "Re-initialize" to force reinitialize <code>wpa_supplicant</code>.') ?></p>
<form method="POST" action="wpa_conf" name="wpa_conf_form" class="row">
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<?php echo CSRFTokenFieldTag() ?>
<div class="col-xs mr-3 mb-3">
<input type="submit" class="btn btn-warning btn-block float-right" name="wpa_reinit" value="<?php echo _("Re-initialize"); ?>" />
</div>
<?php endif ?>
</form>
</div> </div>
<?php } elseif (count($networks) == 1) { <?php } elseif (count($networks) == 1) {
$prop_col = "col-sm-12"; $prop_col = "col-sm-12";