summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/macros.html
diff options
context:
space:
mode:
authorNoémi Ványi <kvch@users.noreply.github.com>2020-06-28 20:28:12 +0200
committerGitHub <noreply@github.com>2020-06-28 20:28:12 +0200
commit93cbd85b8a5becdf69e6d70dd7c60f7122531262 (patch)
tree90d202af89e02fc3e83d5bdf4a924b05ff197261 /searx/templates/oscar/macros.html
parent385e9b5c9e2d1caa73f99dac0bf1be1c46505121 (diff)
parentf9f5974968ce767c24eea8c8a651d0e3945fc01b (diff)
Merge branch 'master' into duckduckgo_correction
Diffstat (limited to 'searx/templates/oscar/macros.html')
-rw-r--r--searx/templates/oscar/macros.html7
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 %}