core: contest problem auto hide

This commit is contained in:
undefined committed 2021-11-24 01:11:11 +08:00
1 parent 20489f3f2e
commit 06a247f819
5 files changed
+48 -6

No files matched your search

@@ -67,13 +67,25 @@
row:false
}) }}
</div>
<div class="row">
{{ form.form_text({
columns:null,
columns:9,
label:'Problems',
name:'pids',
value:pids,
placeholder:_("Seperated with ','")
placeholder:_("Seperated with ','"),
row:false
}) }}
{{ form.form_checkbox({
columns:3,
label:'Auto hide-and show',
name:'autoHide',
placeholder:'',
value:handler.user.hasPerm(perm.PERM_EDIT_PROBLEM) and (tdoc.autoHide|default(true)),
disabled:not handler.user.hasPerm(perm.PERM_EDIT_PROBLEM),
row:false
}) }}
</div>
{{ form.form_textarea({
columns:null,
label:'Content',