mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Update blocklist select
This commit is contained in:
parent
0d18432343
commit
0ba0172b7c
1 changed files with 12 additions and 7 deletions
|
@ -48,15 +48,20 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-md-6">
|
<div class="input-group col-md-12 mb-4">
|
||||||
<select class="custom-select custom-select-sm js-field-preset" data-field-preset-target="#add-dhcp-upstream-server-field">
|
<select class="custom-select custom-select-sm" id="cbxblocklist">
|
||||||
<option value=""><?php echo _("Choose a blocklist provider") ?></option>
|
<option value=""><?php echo _("Choose a blocklist provider") ?></option>
|
||||||
<option disabled="disabled"></option>
|
<option disabled="disabled"></option>
|
||||||
<?php echo optionsForSelect(blocklistProviders()) ?>
|
<?php echo optionsForSelect(blocklistProviders()) ?>
|
||||||
</select>
|
</select>
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button class="btn btn-sm btn-outline-secondary rounded-right" type="button" onclick="updateBlocklist()">Update now</button>
|
||||||
|
<span id="cbxblocklist-status" class="input-group-addon check-hidden ml-2 mt-1"><i class="fas fa-check"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
</div><!-- /.tab-pane | advanded tab -->
|
</div><!-- /.tab-pane | advanded tab -->
|
||||||
|
|
||||||
|
@ -73,10 +78,10 @@
|
||||||
</div>
|
</div>
|
||||||
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
||||||
<input type="submit" class="btn btn-outline btn-primary" name="SaveAdBlockSettings" value="Save settings" />
|
<input type="submit" class="btn btn-outline btn-primary" name="SaveAdBlockSettings" value="Save settings" />
|
||||||
<?php if ($openvpnstatus[0] == 0) {
|
<?php if ($serviceStatus[0] == 0) {
|
||||||
echo '<input type="submit" class="btn btn-success" name="StartOpenVPN" value="Start Ad Blocking" />' , PHP_EOL;
|
echo '<input type="submit" class="btn btn-success" name="StartAdBlock" value="Start Ad Blocking" />' , PHP_EOL;
|
||||||
} else {
|
} else {
|
||||||
echo '<input type="submit" class="btn btn-warning" name="StopOpenVPN" value="Stop Ad Blocking" />' , PHP_EOL;
|
echo '<input type="submit" class="btn btn-warning" name="StopAdBlock" value="Stop Ad Blocking" />' , PHP_EOL;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
Loading…
Reference in a new issue