fix(admin): 添加管理操作错误处理及更新模板样式

- 管理后台帖子与用户审核操作中添加失败错误重定向处理
- 管理后台帖子、用户、评论删除操作中添加错误检查及提示
- 用户角色更新操作失败时添加错误重定向
- 用户封禁通知失败时添加相应错误提示
- 登录登出时session保存加入错误处理
- 讨论区上传目录创建失败时显示错误提示
- 移除admin_dashboard.html多余样式及修正侧边栏当前页高亮
- admin_posts.html和admin_users.html添加状态样式动态使用的隐藏span元素
- admin_users.html为角色选择添加label以提升无障碍性
- 升级项目依赖版本,包含gin、gorm、validator等核心库版本更新
This commit is contained in:
2026-02-24 21:14:55 +08:00
parent ddec422813
commit 690b4d5961
26 changed files with 290 additions and 199 deletions

View File

@@ -55,7 +55,7 @@
.footer-text a:hover { text-decoration: underline; }
</style>
</head>
<body>
<body class="dark-mode">
<div class="register-wrapper">
<div class="header">
<div class="logo">lv8girl<span>绿坝娘</span></div>
@@ -69,20 +69,20 @@
{{else}}
<form method="post">
<div class="form-group">
<label>用户名</label>
<input type="text" name="username" placeholder="3-20个字符支持中文、字母、数字、下划线" required>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="3-20个字符支持中文、字母、数字、下划线" required>
</div>
<div class="form-group">
<label>邮箱</label>
<input type="email" name="email" placeholder="请输入有效邮箱" required>
<label for="email">邮箱</label>
<input type="email" id="email" name="email" placeholder="请输入有效邮箱" required>
</div>
<div class="form-group">
<label>密码</label>
<input type="password" name="password" placeholder="至少6位" required>
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="至少6位" required>
</div>
<div class="form-group">
<label>确认密码</label>
<input type="password" name="confirm_password" placeholder="请再次输入密码" required>
<label for="confirm_password">确认密码</label>
<input type="password" id="confirm_password" name="confirm_password" placeholder="请再次输入密码" required>
</div>
<div class="checkbox-group">
<input type="checkbox" name="agree" id="agree" required>