register forms with 3rd party
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 16 Mar 2012 15:59:49 +0000 (16:59 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 16 Mar 2012 15:59:49 +0000 (16:59 +0100)
wolnelektury/settings.py
wolnelektury/templates/auth/login.html
wolnelektury/templates/auth/register.html [new file with mode: 0644]
wolnelektury/views.py

index f733d10..5704f43 100644 (file)
@@ -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
 
index caa0aea..7fbd570 100644 (file)
@@ -18,3 +18,6 @@
 </ul>
 
 {% 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 (file)
index 0000000..9d2c283
--- /dev/null
@@ -0,0 +1,15 @@
+{% extends "ajaxable/form.html" %}
+{% load i18n %}
+
+
+{% block extra %}
+
+<h1>{% trans "Sign in using:" %}</h1>
+
+<ul class="socialaccount_providers">
+{% include "socialaccount/snippets/provider_list.html" %}
+</ul>
+
+{% include "socialaccount/snippets/login_extra.html" %}
+
+{% endblock %}
index ee78859..37df778 100755 (executable)
@@ -47,6 +47,7 @@ class LoginFormView(AjaxableFormView):
 
 class RegisterFormView(AjaxableFormView):
     form_class = UserCreationForm
+    template = "auth/register.html"
     placeholdize = True
     title = _('Register')
     submit = _('Register')