Commit 2eb82fb9 by Jason Bau

Merge branch 'dcadams/cme_registration' into edx-west/rc-20130912

Conflicts:
	common/djangoapps/student/views.py
	lms/envs/common.py
parents 4b38505e 0eef7a90
...@@ -150,3 +150,6 @@ MITX_FEATURES['ENABLE_SERVICE_STATUS'] = True ...@@ -150,3 +150,6 @@ MITX_FEATURES['ENABLE_SERVICE_STATUS'] = True
# This is to disable a test under the common directory that will not pass when run under CMS # This is to disable a test under the common directory that will not pass when run under CMS
MITX_FEATURES['DISABLE_PASSWORD_RESET_EMAIL_TEST'] = True MITX_FEATURES['DISABLE_PASSWORD_RESET_EMAIL_TEST'] = True
# This is to disable tests CME Registration tests, under common, that will not pass when run under CMS
MITX_FEATURES['DISABLE_CME_REGISTRATION_TESTS'] = True
...@@ -56,7 +56,7 @@ from courseware.access import has_access ...@@ -56,7 +56,7 @@ from courseware.access import has_access
from external_auth.models import ExternalAuthMap from external_auth.models import ExternalAuthMap
from bulk_email.models import Optout from bulk_email.models import Optout
from cme_registration.views import cme_register_user, cme_create_account
import track.views import track.views
from statsd import statsd from statsd import statsd
...@@ -242,6 +242,9 @@ def register_user(request, extra_context=None): ...@@ -242,6 +242,9 @@ def register_user(request, extra_context=None):
""" """
This view will display the non-modal registration form This view will display the non-modal registration form
""" """
if settings.MITX_FEATURES.get('USE_CME_REGISTRATION'):
return cme_register_user(request, extra_context=extra_context)
if request.user.is_authenticated(): if request.user.is_authenticated():
return redirect(reverse('dashboard')) return redirect(reverse('dashboard'))
...@@ -599,6 +602,9 @@ def create_account(request, post_override=None): ...@@ -599,6 +602,9 @@ def create_account(request, post_override=None):
JSON call to create new edX account. JSON call to create new edX account.
Used by form in signup_modal.html, which is included into navigation.html Used by form in signup_modal.html, which is included into navigation.html
""" """
if settings.MITX_FEATURES.get('USE_CME_REGISTRATION'):
return cme_create_account(request, post_override=post_override)
js = {'success': False} js = {'success': False}
post_vars = post_override if post_override else request.POST post_vars = post_override if post_override else request.POST
......
...@@ -48,6 +48,9 @@ class LoginEnrollmentTestCase(TestCase): ...@@ -48,6 +48,9 @@ class LoginEnrollmentTestCase(TestCase):
Provides support for user creation, Provides support for user creation,
activation, login, and course enrollment. activation, login, and course enrollment.
""" """
def setUp(self):
from django.conf import settings
def setup_user(self): def setup_user(self):
""" """
Create a user account, activate, and log in. Create a user account, activate, and log in.
......
...@@ -172,6 +172,9 @@ MITX_FEATURES = { ...@@ -172,6 +172,9 @@ MITX_FEATURES = {
# Toggle storing detailed billing information # Toggle storing detailed billing information
'STORE_BILLING_INFO': False, 'STORE_BILLING_INFO': False,
#Toggle using CME registration instead of normal
'USE_CME_REGISTRATION': False
} }
# Used for A/B testing # Used for A/B testing
...@@ -836,6 +839,10 @@ INSTALLED_APPS = ( ...@@ -836,6 +839,10 @@ INSTALLED_APPS = (
# Student Identity Verification # Student Identity Verification
'verify_student', 'verify_student',
# CME Registration
'cme_registration',
) )
######################### MARKETING SITE ############################### ######################### MARKETING SITE ###############################
......
...@@ -211,11 +211,11 @@ ...@@ -211,11 +211,11 @@
fieldset { fieldset {
margin: 0; margin: 0;
padding-top: 0; padding-top: 0;
padding-bottom: $baseline; padding-bottom: $baseline*2;
} }
.list-input { .list-input {
margin: 0; margin: 0 0 0 25px;
padding: 0; padding: 0;
list-style: none; list-style: none;
} }
...@@ -305,9 +305,9 @@ ...@@ -305,9 +305,9 @@
} }
// types - checkboxes/radio buttons // types - checkboxes/radio buttons
&.checkbox { &.checkbox, .radio {
input[type="checkbox"] { input[type="checkbox"], input[type="radio"] {
display: inline-block; display: inline-block;
width: auto; width: auto;
margin-right: ($baseline/4); margin-right: ($baseline/4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment