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

@ -9,6 +9,8 @@
become403Page(); become403Page();
} }
$REQUIRE_LIB['bootstrap5'] = '';
if (!UOJContext::hasBlogPermission()) { if (!UOJContext::hasBlogPermission()) {
become403Page(); become403Page();
} }
@ -28,6 +30,8 @@
$delete_form->runAtServer(); $delete_form->runAtServer();
?> ?>
<?php echoUOJPageHeader('删除博客 - ' . HTML::stripTags($blog['title'])) ?> <?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 $delete_form->printHTML(); ?>
<?php echoUOJPageFooter() ?> <?php echoUOJPageFooter() ?>