mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-14 14:22:30 +01:00
Fix bootstrap toggle button not matching backing radio button
This commit is contained in:
@ -136,7 +136,7 @@
|
||||
{% macro render_toggle_field(field, icons=[]) -%}
|
||||
<div class="btn-group btn-group-toggle" data-toggle="buttons">
|
||||
{% for value, label, checked in field.iter_choices() %}
|
||||
<label class="btn btn-primary">
|
||||
<label class="btn btn-primary{% if checked %} active{% endif %}">
|
||||
{% set icon = icons[value] %}
|
||||
{% if icon %}
|
||||
<i class="fas {{ icon }} mr-2"></i>
|
||||
|
Reference in New Issue
Block a user