Files
vps_web/templates/forum/comment_form.html
ddrwode 742b1286c9 哈哈
2026-02-10 11:07:04 +08:00

49 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>编辑评论 - 论坛</title>
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/forum.css">
</head>
<body class="forum-page">
<header class="forum-header">
<div class="forum-header-inner">
<div class="forum-header-left">
<a href="{{ url_for('forum_index') }}" class="forum-logo">VPS 论坛</a>
<nav class="forum-primary-nav">
<a href="{{ url_for('forum_index') }}">最新</a>
<a href="{{ cancel_url }}" class="active">返回帖子</a>
</nav>
</div>
<div class="forum-header-right">
<span class="forum-user-chip">{{ current_user.username }}</span>
<a href="{{ url_for('user_profile') }}" class="forum-link">个人中心</a>
<a href="{{ url_for('user_notifications') }}" class="forum-link nav-link-with-badge">通知{% if notifications_unread_count %}<span class="nav-badge">{{ notifications_unread_count }}</span>{% endif %}</a>
<a href="{{ url_for('user_logout') }}" class="forum-link">退出</a>
</div>
</div>
</header>
<main class="forum-shell">
<section class="topic-post-card auth-panel">
<h1>编辑评论</h1>
{% if error %}
<p class="form-error">{{ error }}</p>
{% endif %}
<form method="post" action="{{ action_url }}" class="post-form">
<div class="form-group">
<label for="content">评论内容</label>
<textarea id="content" name="content" required rows="6" minlength="2">{{ content_val or '' }}</textarea>
</div>
<div class="form-actions">
<button type="submit" class="forum-btn-primary">保存修改</button>
<a href="{{ cancel_url }}" class="forum-btn-muted">取消</a>
</div>
</form>
</section>
</main>
</body>
</html>