fix newsletter field in registration form
[wolnelektury.git] / src / wolnelektury / templates / auth / login.html
index 756b8ad..2965713 100644 (file)
@@ -4,23 +4,25 @@
 <h1>{{ title }}</h1>
 
 <form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8"
-       class="cuteform{% if placeholdize %} hidelabels{% endif %}">
-{% ssi_csrf_token %}
-<ol>
+      class="cuteform{% if placeholdize %} hidelabels{% endif %}">
+  {% ssi_csrf_token %}
+  <ol>
     <div id="id_{% if form_prefix %}{{ form_prefix }}-{% endif %}__all__"></div>
     {{ form.as_ul }}
     <li><a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a></li>
     <li><input type="submit" value="{{ submit }}"/></li>
-</ol>
+  </ol>
 </form>
 
+{% if USE_OPENID %}
 <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" %}
+{% endif %}
 
 {% block extra %}
 {% endblock %}