0
0
Fork 0
EnglishPal/app/templates/signup.html

30 lines
942 B
HTML
Raw Normal View History

{% block body %}
{% if session['logged_in'] %}
You're logged in already! <a href="/logout">Logout</a>.
{% else %}
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes" />
<link rel="stylesheet" href="static/css/login_service.css">
<p>{{ get_flashed_messages()[0] | safe }}</p>
2022-06-14 12:37:28 +08:00
2022-07-20 17:10:03 +08:00
<div class="container">
2022-06-14 12:37:28 +08:00
<section class="signin-heading">
2022-07-20 17:10:03 +08:00
<h1>Sign Up</h1>
2022-06-14 12:37:28 +08:00
</section>
2022-07-20 17:10:03 +08:00
<form action="/signup" method="POST">
<p><input type="username" name="username" placeholder="输入用户名" required="required" class="username"></p>
2022-12-19 17:54:10 +08:00
<p><input type="password" name="password" placeholder="输入密码" required="required" class="password"></p>
<p><input type="password" name="password2" placeholder="确认密码" required="required" class="password" ></p>
2022-07-20 17:10:03 +08:00
<button type="submit" class="btn">注册</button>
</form>
2022-06-14 12:37:28 +08:00
2022-07-20 17:10:03 +08:00
</div>
2022-06-14 12:37:28 +08:00
{% endif %}
{% endblock %}