very stupid initial photo verification attempt save just so we can stuff into a cart
This commit is contained in:
@@ -20,7 +20,8 @@ class ChooseModeView(View):
|
||||
course_id = request.GET.get("course_id")
|
||||
context = {
|
||||
"course_id" : course_id,
|
||||
"modes" : CourseMode.modes_for_course_dict(course_id)
|
||||
"modes" : CourseMode.modes_for_course_dict(course_id),
|
||||
"course_name" : course_from_id(course_id).display_name
|
||||
}
|
||||
return render_to_response("course_modes/choose.html", context)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<section class="wrapper">
|
||||
|
||||
<header class="page-header">
|
||||
<h2 class="title">You are registering for [coursename] (ID Verified)</h2>
|
||||
<h2 class="title">You are registering for ${course_name} (ID Verified)</h2>
|
||||
</header>
|
||||
|
||||
<h3 class="title">Select your track:</h3>
|
||||
|
||||
@@ -10,6 +10,7 @@ from django.shortcuts import redirect
|
||||
from django.views.generic.base import View
|
||||
|
||||
from course_modes.models import CourseMode
|
||||
from student.views import course_from_id
|
||||
from verify_student.models import SoftwareSecurePhotoVerification
|
||||
|
||||
class VerifyView(View):
|
||||
@@ -28,11 +29,21 @@ class VerifyView(View):
|
||||
# bookkeeping-wise just to start over.
|
||||
progress_state = "start"
|
||||
|
||||
return render_to_response('verify_student/face_upload.html')
|
||||
context = {
|
||||
"progress_state" : progress_state,
|
||||
"user_full_name" : request.user.profile.name,
|
||||
"course_name" : course_from_id(request.GET['course_id']).display_name
|
||||
}
|
||||
|
||||
return render_to_response('verify_student/photo_verification.html', context)
|
||||
|
||||
|
||||
def post(request):
|
||||
attempt = SoftwareSecurePhotoVerification(user=request.user)
|
||||
attempt.status = "pending"
|
||||
attempt.save()
|
||||
|
||||
|
||||
|
||||
|
||||
def show_requirements(request):
|
||||
|
||||
Reference in New Issue
Block a user