Commit 5422fc94 by David Ormsbee

very stupid initial photo verification attempt save just so we can stuff into a cart

parent 25d9c2f3
...@@ -20,7 +20,8 @@ class ChooseModeView(View): ...@@ -20,7 +20,8 @@ class ChooseModeView(View):
course_id = request.GET.get("course_id") course_id = request.GET.get("course_id")
context = { context = {
"course_id" : course_id, "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) return render_to_response("course_modes/choose.html", context)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<section class="wrapper"> <section class="wrapper">
<header class="page-header"> <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> </header>
<h3 class="title">Select your track:</h3> <h3 class="title">Select your track:</h3>
......
...@@ -10,6 +10,7 @@ from django.shortcuts import redirect ...@@ -10,6 +10,7 @@ from django.shortcuts import redirect
from django.views.generic.base import View from django.views.generic.base import View
from course_modes.models import CourseMode from course_modes.models import CourseMode
from student.views import course_from_id
from verify_student.models import SoftwareSecurePhotoVerification from verify_student.models import SoftwareSecurePhotoVerification
class VerifyView(View): class VerifyView(View):
...@@ -28,11 +29,21 @@ class VerifyView(View): ...@@ -28,11 +29,21 @@ class VerifyView(View):
# bookkeeping-wise just to start over. # bookkeeping-wise just to start over.
progress_state = "start" 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): def post(request):
attempt = SoftwareSecurePhotoVerification(user=request.user) attempt = SoftwareSecurePhotoVerification(user=request.user)
attempt.status = "pending"
attempt.save()
def show_requirements(request): def show_requirements(request):
......
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