Change theme on click now instead of selecting them then hitting submit more ?? 0s for the form checkboxes

This commit is contained in:
johnnyq
2024-11-17 14:33:31 -05:00
parent c2be946f7a
commit b2fff24bd9
18 changed files with 21 additions and 46 deletions

View File

@@ -22,7 +22,7 @@ require_once "inc_all_admin.php";
<div class="col-3 text-center mb-3">
<div class="form-group">
<div class="custom-control custom-radio">
<input class="custom-control-input" type="radio" id="customRadio<?php echo $theme_color; ?>" name="theme" value="<?php echo $theme_color; ?>" <?php if ($config_theme == $theme_color) { echo "checked"; } ?>>
<input class="custom-control-input" type="radio" onchange="this.form.submit()" id="customRadio<?php echo $theme_color; ?>" name="edit_theme_settings" value="<?php echo $theme_color; ?>" <?php if ($config_theme == $theme_color) { echo "checked"; } ?>>
<label for="customRadio<?php echo $theme_color; ?>" class="custom-control-label">
<i class="fa fa-fw fa-6x fa-circle text-<?php echo $theme_color; ?>"></i>
<br>
@@ -36,10 +36,6 @@ require_once "inc_all_admin.php";
</div>
<hr>
<button type="submit" name="edit_theme_settings" class="btn btn-primary text-bold"><i class="fa fa-check mr-2"></i>Set Theme</button>
</form>
</div>
</div>