Add service-status indicator

This commit is contained in:
billz 2019-10-14 21:17:27 +01:00
parent d517669c9f
commit 04d2398c77

View file

@ -2,10 +2,18 @@
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<i class="far fa-dot-circle"></i> <?php echo _("Configure hotspot"); ?>
<span class="label pull-right service-status-<?php echo $serviceStatus ?>">hostapd <?php echo _($serviceStatus) ?></span>
<div class="row">
<div class="col">
<i class="far fa-dot-circle mr-2"></i><?php echo _("Configure hotspot"); ?>
</div>
<!-- /.card-header -->
<div class="col">
<button class="btn btn-light btn-icon-split btn-sm service-status float-right">
<span class="icon text-gray-600"><i class="fas fa-circle service-status-<?php echo $serviceStatus ?>"></i></span>
<span class="text service-status">hostapd <?php echo _($serviceStatus) ?></span>
</button>
</div>
</div><!-- /.row -->
</div><!-- /.card-header -->
<div class="card-body">
<?php $status->showMessages(); ?>
<form role="form" action="?page=hostapd_conf" method="POST">
@ -22,7 +30,7 @@
<div class="tab-content">
<div class="tab-pane active" id="basic">
<h4><?php echo _("Basic settings") ;?></h4>
<h4 class="mt-3"><?php echo _("Basic settings") ;?></h4>
<div class="row">
<div class="form-group col-md-4">
<label for="cbxinterface"><?php echo _("Interface") ;?></label>
@ -78,7 +86,7 @@
</div>
</div>
<div class="tab-pane fade" id="security">
<h4><?php echo _("Security settings"); ?></h4>
<h4 class="mt-3"><?php echo _("Security settings"); ?></h4>
<div class="row">
<div class="form-group col-md-4">
<label for="cbxwpa"><?php echo _("Security type"); ?></label>
@ -99,7 +107,7 @@
</div>
</div>
<div class="tab-pane fade" id="logoutput">
<h4><?php echo _("Logfile output"); ?></h4>
<h4 class="mt-3"><?php echo _("Logfile output"); ?></h4>
<div class="row">
<div class="form-group col-md-8">
<?php
@ -114,7 +122,7 @@
</div>
</div>
<div class="tab-pane fade" id="advanced">
<h4><?php echo _("Advanced settings"); ?></h4>
<h4 class="mt-3"><?php echo _("Advanced settings"); ?></h4>
<div class="row">
<div class="col-md-4">
<div class="checkbox">
@ -429,11 +437,10 @@ if(ops[i].value == country){
break;
}
}
</script>
</div>
</div><!-- /.card-body -->
</div><!-- /.panel-primary -->
</div><!-- /.card -->
<?php if (!RASPI_MONITOR_ENABLED) : ?>
<input type="submit" class="btn btn-outline btn-primary" name="SaveHostAPDSettings" value="<?php echo _("Save settings"); ?>" />
<?php