mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:48:41 +00:00
feat(problem/manage): difficulty_form style
This commit is contained in:
parent
545126a303
commit
8bf8f6c710
@ -65,9 +65,12 @@ $problem_editor->runAtServer();
|
||||
|
||||
$difficulty_form = new UOJForm('difficulty');
|
||||
$difficulty_form->addSelect('difficulty', [
|
||||
'div_class' => 'flex-grow-1',
|
||||
'options' => [-1 => '暂无评定'] + array_combine(UOJProblem::$difficulty, UOJProblem::$difficulty),
|
||||
'default_value' => UOJProblem::info('difficulty'),
|
||||
]);
|
||||
$difficulty_form->config['form']['class'] = 'd-flex';
|
||||
$difficulty_form->config['submit_container']['class'] = 'ms-2';
|
||||
$difficulty_form->handle = function () {
|
||||
DB::update([
|
||||
"update problems",
|
||||
|
Loading…
Reference in New Issue
Block a user