51 lines
2.3 KiB
HTML
51 lines
2.3 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') }}" class="active">最新</a>
|
|
<a href="{{ url_for('index') }}">价格表</a>
|
|
</nav>
|
|
</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="{{ url_for('user_register') }}" class="post-form">
|
|
<input type="hidden" name="next" value="{{ request.values.get('next', '') }}">
|
|
<div class="form-group">
|
|
<label for="username">用户名</label>
|
|
<input id="username" name="username" type="text" required minlength="3" maxlength="20" placeholder="3-20 位,字母/数字/下划线">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">密码</label>
|
|
<input id="password" name="password" type="password" required minlength="6">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="confirm_password">确认密码</label>
|
|
<input id="confirm_password" name="confirm_password" type="password" required minlength="6">
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="submit" class="forum-btn-primary">注册并登录</button>
|
|
<a href="{{ url_for('user_login', next=request.values.get('next', '')) }}" class="forum-btn-muted">去登录</a>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|