diff options
-rw-r--r-- | app/templates/macros/forms.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/templates/macros/forms.html b/app/templates/macros/forms.html index d28199e..9c56a48 100644 --- a/app/templates/macros/forms.html +++ b/app/templates/macros/forms.html @@ -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> |