@@ -108,6 +151,18 @@ from django.core.urlresolvers import reverse
<%block name="requirejs">
require(["js/factories/register"], function (RegisterFactory) {
- RegisterFactory();
+ var options = {
+ autoSubmitRegForm: ${selected_provider and selected_provider.skip_registration_form | n, dump_js_escaped_json}
+ }
+ RegisterFactory(options);
});
%block>
+
+<%block name="jsextra">
+
+%block>
\ No newline at end of file
diff --git a/courses/cms/templates/register.html b/courses/cms/templates/register.html
index 148e7f2..e4ade11 100644
--- a/courses/cms/templates/register.html
+++ b/courses/cms/templates/register.html
@@ -1,8 +1,14 @@
+<%namespace name='static' file='/static_content.html'/>
<%inherit file="base.html" />
<%def name="online_help_token()"><% return "register" %>%def>
<%!
+import third_party_auth
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
+from openedx.core.djangolib.js_utils import dump_js_escaped_json
+from third_party_auth import provider, pipeline
+
+providers = provider.Registry.displayed_for_login()
%>
<%block name="title">${_("Sign Up")}%block>
@@ -21,6 +27,38 @@ from django.core.urlresolvers import reverse
@@ -108,6 +151,18 @@ from django.core.urlresolvers import reverse
<%block name="requirejs">
require(["js/factories/register"], function (RegisterFactory) {
- RegisterFactory();
+ var options = {
+ autoSubmitRegForm: ${selected_provider and selected_provider.skip_registration_form | n, dump_js_escaped_json}
+ }
+ RegisterFactory(options);
});
%block>
+
+<%block name="jsextra">
+
+%block>
\ No newline at end of file