diff options
| author | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-08-07 23:25:27 +0200 |
|---|---|---|
| committer | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-08-07 23:25:27 +0200 |
| commit | c59ef83353bbfb1bc084833798a6b5ff8a1ff0f6 (patch) | |
| tree | e30be4085b4dcfa9e4133a61771837a97e88d670 /searx/templates/oscar/macros.html | |
| parent | c553523f5b1060eb3ad5e5ae185cfc4378c2fee4 (diff) | |
redesign toggle button of engines && plugins
Diffstat (limited to 'searx/templates/oscar/macros.html')
| -rw-r--r-- | searx/templates/oscar/macros.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index a826b0e1e..bf51d5940 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -68,9 +68,11 @@ {%- 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 class="onoffswitch">
+ <input type="checkbox" id="{{ id }}" name="{{ id }}"{% if blocked %} checked="checked"{% endif %} class="onoffswitch-checkbox">
+ <label class="onoffswitch-label" for="{{ id }}">
+ <span class="onoffswitch-inner"></span>
+ <span class="onoffswitch-switch"></span>
+ </label>
</div>
{%- endmacro %}
|