diff --git a/web/app/controllers/contest_inside.php b/web/app/controllers/contest_inside.php index 9af328c..c4fa823 100644 --- a/web/app/controllers/contest_inside.php +++ b/web/app/controllers/contest_inside.php @@ -197,7 +197,7 @@ EOD; } elseif ($cur_tab == 'backstage') { if (isSuperUser(Auth::user())) { $post_notice = new UOJForm('post_notice'); - $post_notice->addInput('title', 'text', '标题', '', + $post_notice->addVInput('title', 'text', '标题', '', function($title) { if (!$title) { return '标题不能为空'; @@ -206,7 +206,7 @@ EOD; }, null ); - $post_notice->addTextArea('content', '正文', '', + $post_notice->addVTextArea('content', '正文', '', function($content) { if (!$content) { return '公告不能为空'; diff --git a/web/app/views/contest-backstage.php b/web/app/views/contest-backstage.php index 22dacb2..c6d788b 100644 --- a/web/app/views/contest-backstage.php +++ b/web/app/views/contest-backstage.php @@ -1,28 +1,29 @@ - - +
+
+ +
-
-

提问

- $questions_pag, 'can_reply' => true, 'reply_question' => $reply_question]) ?> +
+ $questions_pag, 'can_reply' => true, 'reply_question' => $reply_question, 'no_bs5_card' => '']) ?>
-
-

发布比赛公告

+
+

发布比赛公告

printHTML() ?>
-
-

终榜

- +
+ ''])) ?>
+
diff --git a/web/app/views/contest-question-table.php b/web/app/views/contest-question-table.php index 0ae9000..3fbcc14 100644 --- a/web/app/views/contest-question-table.php +++ b/web/app/views/contest-question-table.php @@ -7,8 +7,14 @@ if (!isset($can_reply)) { ?> -
- +
+
diff --git a/web/app/views/contest-standings.php b/web/app/views/contest-standings.php index 57cb351..67a2d73 100644 --- a/web/app/views/contest-standings.php +++ b/web/app/views/contest-standings.php @@ -1,8 +1,7 @@ -
- -
-
-
+