Bare bones outline of ID verification templates
This commit is contained in:
@@ -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"
|
||||
),
|
||||
)
|
||||
|
||||
@@ -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.
|
||||
"""
|
||||
|
||||
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>
|
||||
|
||||
11
lms/templates/verify_student/face_upload.html
Normal file
11
lms/templates/verify_student/face_upload.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<%! 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>
|
||||
10
lms/templates/verify_student/final_verification.html
Normal file
10
lms/templates/verify_student/final_verification.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.core.urlresolvers import reverse %>
|
||||
<%inherit file="../main.html" />
|
||||
|
||||
<%block name="content">
|
||||
|
||||
Final Verification!
|
||||
|
||||
|
||||
</%block>
|
||||
11
lms/templates/verify_student/photo_id_upload.html
Normal file
11
lms/templates/verify_student/photo_id_upload.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<%! 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>
|
||||
12
lms/templates/verify_student/show_requirements.html
Normal file
12
lms/templates/verify_student/show_requirements.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<%! 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$',
|
||||
|
||||
Reference in New Issue
Block a user