Commit 086f5564 by David Ormsbee

Bare bones outline of ID verification templates

parent 0db78843
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"
),
)
......@@ -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)
......@@ -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',
......
......@@ -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"
......
......@@ -96,6 +96,8 @@
%else:
<a href="#" class="register">${_("Register for {course.display_number_with_default}").format(course=course) | h}</a>
<a href="${reverse('verify_student/show_requirements')}">Mock Verify Enrollment</a>
<div id="register_error"></div>
%endif
</div>
......
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" />
<%block name="content">
<h1>Face Upload!</h1>
<a href="${reverse('verify_student/photo_id_upload')}">Upload Photo ID</a>
</%block>
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" />
<%block name="content">
Final Verification!
</%block>
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" />
<%block name="content">
<h1>Photo ID Upload!</h1>
<a href="${reverse('verify_student/final_verification')}">Final Verification</a>
</%block>
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
<%inherit file="../main.html" />
<%block name="content">
<h1>Requirements Page!</h1>
<a href="${reverse('verify_student/face_upload')}">Upload Face</a>
</%block>
......@@ -61,8 +61,13 @@ urlpatterns = ('', # nopep8
url(r'^heartbeat$', include('heartbeat.urls')),
url(r'^user_api/', include('user_api.urls')),
)
if settings.MITX_FEATURES.get("MULTIPLE_ENROLLMENT_ROLES"):
urlpatterns += (url(r'^verify_student/', include('verify_student.urls')),)
js_info_dict = {
'domain': 'djangojs',
'packages': ('lms',),
......@@ -340,6 +345,7 @@ if settings.COURSEWARE_ENABLED:
name='submission_history'),
)
if settings.COURSEWARE_ENABLED and settings.MITX_FEATURES.get('ENABLE_INSTRUCTOR_BETA_DASHBOARD'):
urlpatterns += (
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard$',
......
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