diff options
Diffstat (limited to 'searx/templates/oscar/macros.html')
-rw-r--r-- | searx/templates/oscar/macros.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index d2d1dc643..809c9f595 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -60,15 +60,15 @@ {%- endif %} {%- endmacro %} -{% macro preferences_item_header(info, label, rtl) -%} +{% macro preferences_item_header(info, label, rtl, id) -%} {% if rtl %} <div class="row form-group"> - <label class="col-sm-3 col-md-2 pull-right">{{ label }}</label> + <label class="col-sm-3 col-md-2 pull-right"{% if id %} for="{{id}}"{% endif %}>{{ label }}</label> <span class="col-sm-5 col-md-6 help-block pull-left">{{ info }}</span> <div class="col-sm-4 col-md-4"> {% else %} <div class="row form-group"> - <label class="col-sm-3 col-md-2">{{ label }}</label> + <label class="col-sm-3 col-md-2"{% if id %} for="{{id}}"{% endif %}>{{ label }}</label> <div class="col-sm-4 col-md-4"> {% endif %} {%- endmacro %} @@ -91,6 +91,7 @@ <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span> </label> + <label class="visually-hidden" for="{{ id }}">{{ _('Allow') }}</label> </div> {%- endmacro %} |