mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: new contest edit page and form_checkbox
This commit is contained in:
1 parent
4f66c127da
commit
84d7094b22
6 files changed
+147
-61
No files matched your search
@@ -69,7 +69,7 @@
|
||||
{% set _val = current[setting.key] %}
|
||||
{{ form.form_checkbox({
|
||||
label:setting.name,
|
||||
help_text:setting.desc,
|
||||
placeholder:setting.desc,
|
||||
name:setting.key,
|
||||
value:setting.value if (_val === undefined or _val === null) else _val,
|
||||
disabled:setting.flag|bitand(2)
|
||||
@@ -78,7 +78,8 @@
|
||||
label:setting.name,
|
||||
name:'booleanKeys.' + setting.key,
|
||||
value:true,
|
||||
extra_class:'display-hidden'
|
||||
extra_class:'display-hidden',
|
||||
no_label:true
|
||||
})}}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user