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

This commit is contained in:
David Ormsbee
2013-08-22 14:54:29 -04:00
parent 25d9c2f385
commit 5422fc94ca
3 changed files with 15 additions and 3 deletions

View File

@@ -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)

View File

@@ -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>

View File

@@ -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):