From 5422fc94caa63ebe74e4b5628818d022206863fe Mon Sep 17 00:00:00 2001
From: David Ormsbee <dave@edx.org>
Date: Thu, 22 Aug 2013 14:54:29 -0400
Subject: [PATCH] very stupid initial photo verification attempt save just so
 we can stuff into a cart

---
 common/djangoapps/course_modes/views.py   |  3 ++-
 common/templates/course_modes/choose.html |  2 +-
 lms/djangoapps/verify_student/views.py    | 13 ++++++++++++-
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/common/djangoapps/course_modes/views.py b/common/djangoapps/course_modes/views.py
index 0a563a932b0..a2ccc8583ab 100644
--- a/common/djangoapps/course_modes/views.py
+++ b/common/djangoapps/course_modes/views.py
@@ -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)
 
diff --git a/common/templates/course_modes/choose.html b/common/templates/course_modes/choose.html
index c9633a87902..6c9bf1a0a84 100644
--- a/common/templates/course_modes/choose.html
+++ b/common/templates/course_modes/choose.html
@@ -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>
diff --git a/lms/djangoapps/verify_student/views.py b/lms/djangoapps/verify_student/views.py
index 4876399ed61..677d383bf82 100644
--- a/lms/djangoapps/verify_student/views.py
+++ b/lms/djangoapps/verify_student/views.py
@@ -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):
-- 
GitLab