{% if options.external %} @@ -32,53 +33,9 @@ {% else %}
Create a {{ options.password.name }} account
{% endif %} - {% if messages %} - {% for message in messages %} - - {% endfor %} - {% endif %} -
- {% for error in form.non_field_errors %} - - {% endfor %} - {% csrf_token %} - - {% for field in form %} -
- - - {% if field.help_text %} - - {{ field.help_text | escape }} - - {% endif %} -
- {% if field.errors|length == 1 %} - {{ field.errors|first| escape }} - {% else %} -
    - {% for error in field.errors %} -
  • {{ error | escape }}
  • - {% endfor %} -
- {% endif %} -
-
- {% endfor %} - - -
+ {% include "./partials/messages.html" %} + {% url 'django_airavata_auth:create_account' as form_url %} + {% include "./partials/form.html" with form=form url=form_url submit_text="Create" %}