mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:48:41 +00:00
fix(web/problem/manage): difficulty config
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c0484d55a5
commit
c47f943257
@ -65,7 +65,7 @@ $problem_editor->runAtServer();
|
|||||||
|
|
||||||
$difficulty_form = new UOJForm('difficulty');
|
$difficulty_form = new UOJForm('difficulty');
|
||||||
$difficulty_form->addSelect('difficulty', [
|
$difficulty_form->addSelect('difficulty', [
|
||||||
'options' => array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty),
|
'options' => [-1 => '暂无评定'] + array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty),
|
||||||
'default_value' => UOJProblem::info('difficulty'),
|
'default_value' => UOJProblem::info('difficulty'),
|
||||||
]);
|
]);
|
||||||
$difficulty_form->handle = function () {
|
$difficulty_form->handle = function () {
|
||||||
@ -183,4 +183,4 @@ $difficulty_form->runAtServer();
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php echoUOJPageFooter() ?>
|
<?php echoUOJPageFooter() ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user