diff --git a/src/typefight/templates/auth.html b/src/typefight/templates/auth.html index 22684db..0f3f532 100644 --- a/src/typefight/templates/auth.html +++ b/src/typefight/templates/auth.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% from "_formhelpers.html" import render_field %} {% block style %} @@ -9,268 +10,12 @@
- - - - - - - {% with messages = get_flashed_messages() %} - {% if messages %} -
    - {% for message in messages %} -
  • {{ message }}
  • - {% endfor %} -
- {% endif %} - {% endwith %} + {% if form %} + {{ render_field(form.username) }} + {{ render_field(form.password) }} + {{ render_field(form.confirm) }} + {{ render_field(form.country) }} + {% endif %}
@@ -294,4 +39,4 @@ {% block scripts %} -{% endblock %} \ No newline at end of file +{% endblock %}