Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Register</title>
- </head>
- <body>
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- {% for category, message in messages %}
- {{ message }}
- {% endfor %}
- {% endif %}
- {% endwith %}
- <form method="POST" action="">
- {{ form.hidden_tag() }}
- {{ form.username.label }}
- {% if form.username.errors %}
- {{ form.username }}
- {% for error in form.username.errors %}
- {{ error }}
- {% endfor %}
- {% else %}
- {{ form.username }}
- {% endif %}
- <br>
- {{ form.email.label }}
- {% if form.email.errors %}
- {{ form.email }}
- {% for error in form.email.errors %}
- {{ error }}
- {% endfor %}
- {% else %}
- {{ form.email }}
- {% endif %}
- <br>
- {{ form.password.label }}
- {% if form.password.errors %}
- {{ form.password }}
- {% for error in form.password.errors %}
- {{ error }}
- {% endfor %}
- {% else %}
- {{ form.password }}
- {% endif %}
- <br>
- {{ form.confirm_password.label }}
- {% if form.confirm_password.errors %}
- {{ form.confirm_password }}
- {% for error in form.confirm_password.errors %}
- {{ error }}
- {% endfor %}
- {% else %}
- {{ form.confirm_password }}
- {% endif %}
- <br>
- {{ form.submit }}
- <br>
- Already have an account? <a href="{{ url_for('login') }}">Sign In</a>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement