diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-03-15 11:38:07 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-03-15 11:38:07 +0100 |
| commit | bd92b43449410fe1c598600b16b0f23c4f6c256e (patch) | |
| tree | bc4790cf078d54c9563ce3f3577dfcc447ae643b /searx/templates/oscar/macros.html | |
| parent | 4cc79533e7452e4c08a2654f1ee1022307d227b0 (diff) | |
| parent | f57149f912eece7dab1069e078f6bfe54ffd46e1 (diff) | |
Merge branch 'plugins'
Diffstat (limited to 'searx/templates/oscar/macros.html')
| -rw-r--r-- | searx/templates/oscar/macros.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 1ba1617a9..feb9ba942 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -59,3 +59,11 @@ </div>
{% endif %}
{%- endmacro %}
+
+{% macro checkbox_toggle(id, blocked) -%}
+ <div class="checkbox">
+ <input class="hidden" type="checkbox" id="{{ id }}" name="{{ id }}"{% if blocked %} checked="checked"{% endif %} />
+ <label class="btn btn-success label_hide_if_checked" for="{{ id }}">{{ _('Block') }}</label>
+ <label class="btn btn-danger label_hide_if_not_checked" for="{{ id }}">{{ _('Allow') }}</label>
+ </div>
+{%- endmacro %}
|