diff --git a/lms/djangoapps/verify_student/urls.py b/lms/djangoapps/verify_student/urls.py index e69de29bb2..a3644615e8 100644 --- a/lms/djangoapps/verify_student/urls.py +++ b/lms/djangoapps/verify_student/urls.py @@ -0,0 +1,28 @@ +from django.conf.urls import include, patterns, url +from django.views.generic import TemplateView + +from verify_student import views + +urlpatterns = patterns( + '', + url( + r'^show_requirements', + views.show_requirements, + name="verify_student/show_requirements" + ), + url( + r'^face_upload', + views.face_upload, + name="verify_student/face_upload" + ), + url( + r'^photo_id_upload', + views.photo_id_upload, + name="verify_student/photo_id_upload" + ), + url( + r'^final_verification', + views.final_verification, + name="verify_student/final_verification" + ), +) diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py index 964f8fa0f3..acaafb092d 100644 --- a/lms/djangoapps/verify_student/views.py +++ b/lms/djangoapps/verify_student/views.py @@ -2,12 +2,30 @@ """ +from mitxmako.shortcuts import render_to_response -@login_required -def start(request): +# @login_required +def start_or_resume_attempt(request): """ If they've already started a PhotoVerificationAttempt, we move to wherever they are in that process. If they've completed one, then we skip straight to payment. """ - \ No newline at end of file + pass + +def show_requirements(request): + """This might just be a plain template without a view.""" + context = { "course_id" : "edX/Certs101/2013_Test" } + return render_to_response("verify_student/show_requirements.html", context) + +def face_upload(request): + context = { "course_id" : "edX/Certs101/2013_Test" } + return render_to_response("verify_student/face_upload.html", context) + +def photo_id_upload(request): + context = { "course_id" : "edX/Certs101/2013_Test" } + return render_to_response("verify_student/photo_id_upload.html", context) + +def final_verification(request): + context = { "course_id" : "edX/Certs101/2013_Test" } + return render_to_response("verify_student/final_verification.html", context) diff --git a/lms/envs/common.py b/lms/envs/common.py index d4ff040d5f..22923de539 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -154,6 +154,9 @@ MITX_FEATURES = { # Toggle to enable chat availability (configured on a per-course # basis in Studio) 'ENABLE_CHAT': False, + + # Allow users to enroll with methods other than just honor code certificates + 'MULTIPLE_ENROLLMENT_ROLES' : False } # Used for A/B testing @@ -774,7 +777,7 @@ INSTALLED_APPS = ( 'notification_prefs', # Different Course Modes - 'course_modes' + 'course_modes', # Student Identity Verification 'verify_student', diff --git a/lms/envs/dev.py b/lms/envs/dev.py index d47c7bf82d..4d90c2a816 100644 --- a/lms/envs/dev.py +++ b/lms/envs/dev.py @@ -30,6 +30,7 @@ MITX_FEATURES['ENABLE_INSTRUCTOR_ANALYTICS'] = True MITX_FEATURES['ENABLE_SERVICE_STATUS'] = True MITX_FEATURES['ENABLE_HINTER_INSTRUCTOR_VIEW'] = True MITX_FEATURES['ENABLE_INSTRUCTOR_BETA_DASHBOARD'] = True +MITX_FEATURES['MULTIPLE_ENROLLMENT_ROLES'] = True FEEDBACK_SUBMISSION_EMAIL = "dummy@example.com" diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index e4a453133d..39cf04e72c 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -96,6 +96,8 @@ %else: ${_("Register for {course.display_number_with_default}").format(course=course) | h} + Mock Verify Enrollment +
%endif diff --git a/lms/templates/verify_student/face_upload.html b/lms/templates/verify_student/face_upload.html new file mode 100644 index 0000000000..6338750c06 --- /dev/null +++ b/lms/templates/verify_student/face_upload.html @@ -0,0 +1,11 @@ +<%! from django.utils.translation import ugettext as _ %> +<%! from django.core.urlresolvers import reverse %> +<%inherit file="../main.html" /> + +<%block name="content"> + +