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

20 lines
625 B
HTML
Raw Permalink 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" />
<p>{{ get_flashed_messages()[0] | safe }}</p>
<p>Sign up here.</p>
<form action="/signup" method="POST">
<p><input type="username" name="username" placeholder="邮箱地址、电话号码" required="required"></p>
<p><input required type="password" name="password" placeholder="密码"></p>
<p><input type="submit" value="注册"></p>
</form>
{% endif %}
{% endblock %}