nicer social signup form
authorJan Szejko <janek37@gmail.com>
Thu, 24 May 2018 15:58:45 +0000 (17:58 +0200)
committerJan Szejko <janek37@gmail.com>
Thu, 24 May 2018 15:58:45 +0000 (17:58 +0200)
src/wolnelektury/templates/socialaccount/signup.html

index 78df711..ef4d5fc 100644 (file)
@@ -1,6 +1,7 @@
 {% extends "socialaccount/base.html" %}
 
 {% load i18n %}
+{% load ajaxable_tags %}
 
 {% block head_title %}{% trans "Signup" %}{% endblock %}
 
 <p>{% blocktrans with provider_name=account.get_provider.name site_name=site.name %}You are about to use your {{provider_name}} account to login to
 {{site_name}}. As a final step, please complete the following form:{% endblocktrans %}</p>
 
-<form class="signup" id="signup_form" method="post" action="{% url 'socialaccount_signup' %}">
+<form class="signup cuteform" id="signup_form" method="post" action="{% url 'socialaccount_signup' %}">
   {% csrf_token %}
-  {{ form.as_p }}
+  <ul>
+    {{ form.username|pretty_field }}
+    {{ form.email|pretty_field }}
+    {{ form.agree_newsletter|pretty_checkbox }}
+  </ul>
   {% if redirect_field_value %}
   <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
   {% endif %}