ui: add highlight preview

This commit is contained in:
undefined committed 2024-07-26 18:28:05 +08:00
1 parent 8966b9c532
commit 644917ee45
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 %}