register.html 1012 B

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Django Hackathon Starter</title>
  5. </head>
  6. <body>
  7. <h1>Register with Django Hackathon Starter</h1>
  8. {% if registered %}
  9. Django Hackathon says: <strong>thank you for registering!</strong>
  10. <a href="/hackathon/">Return to the homepage.</a><br />
  11. {% else %}
  12. Django Hackathon says: <strong>register here!</strong><br />
  13. <form id="user_form" method="post" action="/hackathon/register/"
  14. enctype="multipart/form-data">
  15. {% csrf_token %}
  16. <!-- Display each form. The as_p method wraps each element in a paragraph
  17. (<p>) element. This ensures each element appears on a new line,
  18. making everything look neater. -->
  19. {{ user_form.as_p }}
  20. <!-- Provide a button to click to submit the form. -->
  21. <input type="submit" name="submit" value="Register" />
  22. </form>
  23. {% endif %}
  24. </body>
  25. </html>