feat(problem/manage): difficulty_form style

This commit is contained in:
Baoshuo Ren 2023-01-19 12:11:26 +08:00
parent 545126a303
commit 8bf8f6c710
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -65,9 +65,12 @@ $problem_editor->runAtServer();
$difficulty_form = new UOJForm('difficulty'); $difficulty_form = new UOJForm('difficulty');
$difficulty_form->addSelect('difficulty', [ $difficulty_form->addSelect('difficulty', [
'div_class' => 'flex-grow-1',
'options' => [-1 => '暂无评定'] + 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->config['form']['class'] = 'd-flex';
$difficulty_form->config['submit_container']['class'] = 'ms-2';
$difficulty_form->handle = function () { $difficulty_form->handle = function () {
DB::update([ DB::update([
"update problems", "update problems",