Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5422fc94
Commit
5422fc94
authored
Aug 22, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
very stupid initial photo verification attempt save just so we can stuff into a cart
parent
25d9c2f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
common/djangoapps/course_modes/views.py
+2
-1
common/templates/course_modes/choose.html
+1
-1
lms/djangoapps/verify_student/views.py
+12
-1
No files found.
common/djangoapps/course_modes/views.py
View file @
5422fc94
...
...
@@ -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
)
...
...
common/templates/course_modes/choose.html
View file @
5422fc94
...
...
@@ -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>
...
...
lms/djangoapps/verify_student/views.py
View file @
5422fc94
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment