58 lines
2.9 KiB
HTML
58 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ 'zh-CN' if lang == 'zh' else 'en' }}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ l('用户登录', 'Login') }} - {{ l('云价眼', 'VPS Price') }}</title>
|
|
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='img/site-logo-mark.svg') }}">
|
|
<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">
|
|
<img src="{{ url_for('static', filename='img/site-logo-mark.svg') }}" alt="{{ l('云价眼 Logo', 'VPS Price Logo') }}">
|
|
<span>{{ l('云价眼论坛', 'VPS Price Forum') }}</span>
|
|
</a>
|
|
<nav class="forum-primary-nav">
|
|
<a href="{{ url_for('forum_index') }}" class="active">{{ l('最新', 'Latest') }}</a>
|
|
<a href="{{ url_for('index') }}">{{ l('价格表', 'Pricing') }}</a>
|
|
</nav>
|
|
</div>
|
|
<div class="forum-header-right">
|
|
<span class="lang-switch">
|
|
<a href="{{ lang_url('zh') }}" class="{{ 'active' if lang == 'zh' else '' }}" title="切换到中文">中文</a>
|
|
<span class="lang-sep">|</span>
|
|
<a href="{{ lang_url('en') }}" class="{{ 'active' if lang == 'en' else '' }}" title="Switch to English">English</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main class="forum-shell">
|
|
<section class="topic-post-card auth-panel">
|
|
<h1>{{ l('登录账号', 'Sign In') }}</h1>
|
|
{% if error %}
|
|
<p class="form-error">{{ error }}</p>
|
|
{% endif %}
|
|
<form method="post" action="{{ url_for('user_login') }}" class="post-form">
|
|
<input type="hidden" name="next" value="{{ request.values.get('next', '') }}">
|
|
<div class="form-group">
|
|
<label for="username">{{ l('用户名', 'Username') }}</label>
|
|
<input id="username" name="username" type="text" required autofocus>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">{{ l('密码', 'Password') }}</label>
|
|
<input id="password" name="password" type="password" required>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="submit" class="forum-btn-primary">{{ l('登录', 'Login') }}</button>
|
|
<a href="{{ url_for('user_register', next=request.values.get('next', '')) }}" class="forum-btn-muted">{{ l('去注册', 'Create Account') }}</a>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|