mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: add highlight preview
This commit is contained in:
6 files changed
+238
-96
No files matched your search
@@ -209,5 +209,8 @@
|
||||
{% macro form_checkbox(args) %}
|
||||
{{ form_begin({columns:5}|assign(args)) }}
|
||||
{{ checkbox(args) }}
|
||||
{% if args.boolean_placeholder %}
|
||||
<input type="checkbox" name="booleanKeys.{{ setting.key }}" checked style="display: none" />
|
||||
{% endif %}
|
||||
{{ form_end(args) }}
|
||||
{% endmacro %}
|
||||
@@ -72,14 +72,8 @@
|
||||
placeholder:setting.desc,
|
||||
name:setting.key,
|
||||
value:setting.value if (_val === undefined or _val === null) else _val,
|
||||
disabled:setting.flag|bitand(2)
|
||||
})}}
|
||||
{{ form.form_checkbox({
|
||||
label:setting.name,
|
||||
name:'booleanKeys.' + setting.key,
|
||||
value:true,
|
||||
extra_class:'display-hidden',
|
||||
no_label:true
|
||||
disabled:setting.flag|bitand(2),
|
||||
boolean_placeholder: true
|
||||
})}}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user