Advertisement
Kitood

Untitled

Jan 13th, 2023
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.83 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <title>Register</title>
  5. </head>
  6. <body>
  7.     {% with messages = get_flashed_messages(with_categories=true) %}
  8.         {% if messages %}
  9.             {% for category, message in messages %}
  10.                 {{ message }}
  11.             {% endfor %}
  12.         {% endif %}
  13.     {% endwith %}        
  14.     <form method="POST" action="">
  15.         {{ form.hidden_tag() }}
  16.  
  17.         {{ form.username.label }}
  18.         {% if form.username.errors %}
  19.             {{ form.username }}
  20.         {% for error in form.username.errors %}
  21.                 {{ error }}
  22.             {% endfor %}
  23.         {% else %}
  24.             {{ form.username }}
  25.         {% endif %}
  26.  
  27.         <br>
  28.        
  29.         {{ form.email.label }}
  30.         {% if form.email.errors %}
  31.             {{ form.email }}
  32.             {% for error in form.email.errors %}
  33.                 {{ error }}
  34.             {% endfor %}
  35.         {% else %}
  36.             {{ form.email }}
  37.         {% endif %}
  38.  
  39.         <br>
  40.        
  41.         {{ form.password.label }}
  42.         {% if form.password.errors %}
  43.             {{ form.password }}
  44.             {% for error in form.password.errors %}
  45.                 {{ error }}
  46.             {% endfor %}
  47.         {% else %}
  48.             {{ form.password }}
  49.         {% endif %}
  50.        
  51.         <br>
  52.        
  53.         {{ form.confirm_password.label }}
  54.         {% if form.confirm_password.errors %}
  55.             {{ form.confirm_password }}
  56.             {% for error in form.confirm_password.errors %}
  57.                 {{ error }}
  58.             {% endfor %}
  59.         {% else %}
  60.             {{ form.confirm_password }}
  61.         {% endif %}
  62.        
  63.         <br>
  64.        
  65.         {{ form.submit }}
  66.        
  67.         <br>
  68.  
  69.         Already have an account? <a href="{{ url_for('login') }}">Sign In</a>
  70.     </form>
  71. </body>
  72. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement