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

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.26.20",
"version": "4.26.21",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -0,0 +1,6 @@
.page--contest_edit
.page--contest_create
label
&.checkbox
margin-top: 24px
@@ -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',