--- /dev/null
+from django import template
+from ajaxable.utils import placeholdized
+register = template.Library()
+
+@register.filter
+def placeholdize(form):
+ return placeholdized(form)
python-memcached
piwik
+python-fb
# Feedparser
Feedparser>=4.1
$('body').append($window);
$window.jqm({
- ajax: '/uzytkownicy/zaloguj-utworz/',
+ ajax: '/uzytkownicy/zaloguj-utworz/?next=' + escape(window.location),
ajaxText: '<p><img src="' + STATIC_URL + 'img/indicator.gif" alt="*"/> ' + gettext("Loading") + '</p>',
target: $('.target', $window)[0],
overlay: 60,
-{% extends "ajaxable/form.html" %}
{% load i18n %}
+<h1>{{ title }}</h1>
-{% block extra %}
+<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 your password?" %}</a></li>
+ <li><input type="submit" value="{{ submit }}"/></li>
+</ol>
+</form>
-<h2>{% trans "or join accounts:" %}</h2>
+<h1>{% trans "or merge accounts:" %}</h1>
-<ul class="socialauth">
{% include "socialaccount/snippets/provider_list.html" %}
-</ul>
-
-{% endblock %}
-
-{% extends "ajaxable/form.html" %}
+{% extends "auth/login.html" %}
{% load i18n %}
{% block extra %}
-<h2>{% trans "or join accounts:" %}</h2>
-
-<ul class="socialauth">
-{% include "socialaccount/snippets/provider_list.html" %}
-</ul>
-
+{{ block.super }}
<h1>{% trans "or register" %}:</h1>
--- /dev/null
+{% extends "base.html" %}
+{% load i18n %}
+{% load ajaxable_tags %}
+
+
+{% block titleextra %}{% trans "OpenID Sign In" %}{% endblock %}
+
+
+{% block body %}
+
+<h1>{% trans 'OpenID Sign In' %}</h1>
+
+
+<form class="cuteform hidelabels" method="post" action="{% url openid_login %}">
+<ul>
+ {% csrf_token %}
+ {% with form|placeholdize as f %}
+ {{ f.as_ul }}
+ {% endwith %}
+ <li><input type="submit" value='{% trans "Login" %}' /></li>
+</ul>
+</form>
+
+{% endblock %}
--- /dev/null
+{% extends "base.html" %}
{% load allauth_tags %}
+{% load catalogue_tags %}
+{% if allauth.facebook_enabled %}
+{% fbconnect %}
+{% endif %}
+
+<ul class="socialauth">
{% if allauth.openid_enabled %}
<li><a title="Google" class="socialaccount_provider google" href="{% openid_login_url openid="https://www.google.com/accounts/o8/id" %}">
<img alt="Google" src="{{ STATIC_URL }}img/auth/google.png" /></a></li>
{% endif %}
+{% if allauth.facebook_enabled %}
+<li><a title="Facebook" class="socialaccount_provider facebook" href="{% facebook_login_url next=request.GET.next|build_absolute_uri:request %}">
+ <img alt="Facebook" src="{{ STATIC_URL }}img/auth/facebook.png" /></a></li>
+{% endif %}
{% if allauth.twitter_enabled %}
<li><a title="Twitter" class="socialaccount_provider twitter" href="{% twitter_login_url %}">
<img alt="Twitter" src="{{ STATIC_URL }}img/auth/twitter.png" /></a></li>
{% endif %}
-{% if allauth.facebook_enabled %}
-<li><a title="Facebook" class="socialaccount_provider facebook" href="{% facebook_login_url %}">
- <img alt="Facebook" src="{{ STATIC_URL }}img/auth/facebook.png" /></a></li>
-{% endif %}
{% if allauth.openid_enabled %}
+<!--li><a title="WP.pl" class="socialaccount_provider wppl" href="{% openid_login_url openid="http://openid.wp.pl" %}">
+ <img alt="WP.pl" src="{{ STATIC_URL }}img/auth/wppl.png" /></a></li-->
<!--li><a title="Yahoo" class="socialaccount_provider yahoo" href="{% openid_login_url openid="http://me.yahoo.com" %}">
<img alt="Yahoo" src="{{ STATIC_URL }}img/auth/yahoo.png" /></a></li-->
-<!--li><a title="OpenID" class="socialaccount_provider openid" href="{% openid_login_url %}">
- <img alt="OpenID" src="{{ STATIC_URL }}img/auth/openid.png" /></a></li-->
+<li><a title="OpenID" class="socialaccount_provider openid" href="{% openid_login_url %}">
+ <img alt="OpenID" src="{{ STATIC_URL }}img/auth/openid.png" /></a></li>
<!--li><a title="Hyves" class="socialaccount_provider hyves" href="{% openid_login_url openid="http://hyves.nl" %}">Hyves</a></li-->
{% endif %}
+</ul>