register forms with 3rd party
[wolnelektury.git] / wolnelektury / templates / auth / login.html
index 204cce6..7fbd570 100644 (file)
@@ -1,28 +1,23 @@
 {% load i18n %}
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
-"http://www.w3.org/TR/html4/strict.dtd">
-<html>
-       <head>
-               <title>{% trans "Authorize Token" %}</title>
-               <link rel="stylesheet" href="/static/css/mobile.css" media="handheld, only screen and (max-device-width:480px)"/>
-               <meta name="viewport" content="width=320" />            
-       </head>
-    <body>
-        <h1>WolneLektury.pl - {% trans "Sign in" %} / {% trans "Register"%}</h1>
-        <form method="post" action="." id="login-form" class="cuteform">
-            <h2>{% trans "Sign in" %}</h2>
-            <ul>
-                {{ form.as_ul }}
-                <li><input type="submit" value="{% trans "Sign in" %}" /></li>
-            </ul>
-            <p><input type="hidden" name="next" value="{{ next }}" /></p>
-        </form>
+<h1>{{ title }}</h1>
 
-        <form action="." method="post" accept-charset="utf-8" id="registration-form">
-            <h2>{% trans "Register" %}</h2>
-            <ul>
-                <li><input type="submit" value="{% trans "Register" %}"/></li>
-            </ul>
-        </form>
-    </body>
-</html>
+<form action="{{ request.get_full_path }}" method="post" accept-charset="utf-8"
+       class="cuteform{% if placeholdize %} hidelabels{% endif %}">
+<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>
+</form>
+
+<h1>{% trans "Sign in using:" %}</h1>
+
+<ul class="socialaccount_providers">
+{% include "socialaccount/snippets/provider_list.html" %}
+</ul>
+
+{% include "socialaccount/snippets/login_extra.html" %}
+
+{% block extra %}
+{% endblock %}