simplify piston authorize form
[wolnelektury.git] / src / wolnelektury / templates / auth / register.html
index 9d2c283..967fc6f 100644 (file)
@@ -1,15 +1,27 @@
 {% extends "ajaxable/form.html" %}
 {% load i18n %}
 {% extends "ajaxable/form.html" %}
 {% load i18n %}
+{% load ajaxable_tags %}
+
+
+{% block form_fields %}
+  {{ form.username|pretty_field }}
+  {{ form.email|pretty_field }}
+  {{ form.password1|pretty_field }}
+  {{ form.password2|pretty_field }}
+  {{ form.agree_newsletter|pretty_checkbox }}
+{% endblock %}
 
 
 {% block extra %}
 
 
 
 {% block extra %}
 
+{% if USE_OPENID %}
 <h1>{% trans "Sign in using:" %}</h1>
 
 <ul class="socialaccount_providers">
 <h1>{% trans "Sign in using:" %}</h1>
 
 <ul class="socialaccount_providers">
-{% include "socialaccount/snippets/provider_list.html" %}
+  {% include "socialaccount/snippets/provider_list.html" %}
 </ul>
 
 {% include "socialaccount/snippets/login_extra.html" %}
 </ul>
 
 {% include "socialaccount/snippets/login_extra.html" %}
+{% endif %}
 
 {% endblock %}
 
 {% endblock %}