refactor(web/blog/delete): bootstrap5

This commit is contained in:
Baoshuo Ren 2022-10-08 14:28:02 +08:00
parent 4779cb3bcc
commit 833c8c2c80
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -8,6 +8,8 @@
if (!isNormalUser($myUser) && UOJConfig::$data['switch']['force-login']) {
become403Page();
}
$REQUIRE_LIB['bootstrap5'] = '';
if (!UOJContext::hasBlogPermission()) {
become403Page();
@ -28,6 +30,8 @@
$delete_form->runAtServer();
?>
<?php echoUOJPageHeader('删除博客 - ' . HTML::stripTags($blog['title'])) ?>
<h3>您真的要删除博客 <?= $blog['title'] ?> 吗?该操作不可逆!</h3>
<h1 class="h3 text-center">
您真的要删除博客 <?= $blog['title'] ?>” <span class="fs-5">(博客 ID<?= $blog['id'] ?></span>吗?该操作不可逆!
</h1>
<?php $delete_form->printHTML(); ?>
<?php echoUOJPageFooter() ?>