mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +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 = 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",
|
||||||
|
Loading…
Reference in New Issue
Block a user