From 7605d3596bad00cbb815454faac690c6b06808f2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 16 Mar 2012 16:59:49 +0100 Subject: [PATCH] register forms with 3rd party --- wolnelektury/settings.py | 2 +- wolnelektury/templates/auth/login.html | 3 +++ wolnelektury/templates/auth/register.html | 15 +++++++++++++++ wolnelektury/views.py | 1 + 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 wolnelektury/templates/auth/register.html diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index f733d105b..5704f43c2 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -327,7 +327,7 @@ ALL_PDF_ZIP = 'wolnelektury_pl_pdf' ALL_MOBI_ZIP = 'wolnelektury_pl_mobi' CATALOGUE_DEFAULT_LANGUAGE = 'pol' -PUBLISH_PLAN_FEED = 'http://redakcja.wolnelektury.pl/documents/track/editor-proofreading/' +PUBLISH_PLAN_FEED = 'http://redakcja.wolnelektury.pl/documents/track/editor-proofreading/?published=false' PAGINATION_INVALID_PAGE_RAISES_404 = True diff --git a/wolnelektury/templates/auth/login.html b/wolnelektury/templates/auth/login.html index caa0aea2c..7fbd570c0 100644 --- a/wolnelektury/templates/auth/login.html +++ b/wolnelektury/templates/auth/login.html @@ -18,3 +18,6 @@ {% include "socialaccount/snippets/login_extra.html" %} + +{% block extra %} +{% endblock %} diff --git a/wolnelektury/templates/auth/register.html b/wolnelektury/templates/auth/register.html new file mode 100644 index 000000000..9d2c28363 --- /dev/null +++ b/wolnelektury/templates/auth/register.html @@ -0,0 +1,15 @@ +{% extends "ajaxable/form.html" %} +{% load i18n %} + + +{% block extra %} + +

{% trans "Sign in using:" %}

+ + + +{% include "socialaccount/snippets/login_extra.html" %} + +{% endblock %} diff --git a/wolnelektury/views.py b/wolnelektury/views.py index ee78859b2..37df778cd 100755 --- a/wolnelektury/views.py +++ b/wolnelektury/views.py @@ -47,6 +47,7 @@ class LoginFormView(AjaxableFormView): class RegisterFormView(AjaxableFormView): form_class = UserCreationForm + template = "auth/register.html" placeholdize = True title = _('Register') submit = _('Register') -- 2.20.1