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
086f5564
Commit
086f5564
authored
Aug 15, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bare bones outline of ID verification templates
parent
0db78843
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
106 additions
and
5 deletions
+106
-5
lms/djangoapps/verify_student/urls.py
+28
-0
lms/djangoapps/verify_student/views.py
+21
-4
lms/envs/common.py
+4
-1
lms/envs/dev.py
+1
-0
lms/templates/courseware/course_about.html
+2
-0
lms/templates/verify_student/face_upload.html
+11
-0
lms/templates/verify_student/final_verification.html
+10
-0
lms/templates/verify_student/photo_id_upload.html
+11
-0
lms/templates/verify_student/show_requirements.html
+12
-0
lms/urls.py
+6
-0
No files found.
lms/djangoapps/verify_student/urls.py
View file @
086f5564
from
django.conf.urls
import
include
,
patterns
,
url
from
django.views.generic
import
TemplateView
from
verify_student
import
views
urlpatterns
=
patterns
(
''
,
url
(
r'^show_requirements'
,
views
.
show_requirements
,
name
=
"verify_student/show_requirements"
),
url
(
r'^face_upload'
,
views
.
face_upload
,
name
=
"verify_student/face_upload"
),
url
(
r'^photo_id_upload'
,
views
.
photo_id_upload
,
name
=
"verify_student/photo_id_upload"
),
url
(
r'^final_verification'
,
views
.
final_verification
,
name
=
"verify_student/final_verification"
),
)
lms/djangoapps/verify_student/views.py
View file @
086f5564
...
...
@@ -2,12 +2,30 @@
"""
from
mitxmako.shortcuts
import
render_to_response
@login_required
def
start
(
request
):
#
@login_required
def
start
_or_resume_attempt
(
request
):
"""
If they've already started a PhotoVerificationAttempt, we move to wherever
they are in that process. If they've completed one, then we skip straight
to payment.
"""
\ No newline at end of file
pass
def
show_requirements
(
request
):
"""This might just be a plain template without a view."""
context
=
{
"course_id"
:
"edX/Certs101/2013_Test"
}
return
render_to_response
(
"verify_student/show_requirements.html"
,
context
)
def
face_upload
(
request
):
context
=
{
"course_id"
:
"edX/Certs101/2013_Test"
}
return
render_to_response
(
"verify_student/face_upload.html"
,
context
)
def
photo_id_upload
(
request
):
context
=
{
"course_id"
:
"edX/Certs101/2013_Test"
}
return
render_to_response
(
"verify_student/photo_id_upload.html"
,
context
)
def
final_verification
(
request
):
context
=
{
"course_id"
:
"edX/Certs101/2013_Test"
}
return
render_to_response
(
"verify_student/final_verification.html"
,
context
)
lms/envs/common.py
View file @
086f5564
...
...
@@ -154,6 +154,9 @@ MITX_FEATURES = {
# Toggle to enable chat availability (configured on a per-course
# basis in Studio)
'ENABLE_CHAT'
:
False
,
# Allow users to enroll with methods other than just honor code certificates
'MULTIPLE_ENROLLMENT_ROLES'
:
False
}
# Used for A/B testing
...
...
@@ -774,7 +777,7 @@ INSTALLED_APPS = (
'notification_prefs'
,
# Different Course Modes
'course_modes'
'course_modes'
,
# Student Identity Verification
'verify_student'
,
...
...
lms/envs/dev.py
View file @
086f5564
...
...
@@ -30,6 +30,7 @@ MITX_FEATURES['ENABLE_INSTRUCTOR_ANALYTICS'] = True
MITX_FEATURES
[
'ENABLE_SERVICE_STATUS'
]
=
True
MITX_FEATURES
[
'ENABLE_HINTER_INSTRUCTOR_VIEW'
]
=
True
MITX_FEATURES
[
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
]
=
True
MITX_FEATURES
[
'MULTIPLE_ENROLLMENT_ROLES'
]
=
True
FEEDBACK_SUBMISSION_EMAIL
=
"dummy@example.com"
...
...
lms/templates/courseware/course_about.html
View file @
086f5564
...
...
@@ -96,6 +96,8 @@
%else:
<a
href=
"#"
class=
"register"
>
${_("Register for {course.display_number_with_default}").format(course=course) | h}
</a>
<a
href=
"${reverse('verify_student/show_requirements')}"
>
Mock Verify Enrollment
</a>
<div
id=
"register_error"
></div>
%endif
</div>
...
...
lms/templates/verify_student/face_upload.html
0 → 100644
View file @
086f5564
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"content"
>
<h1>
Face Upload!
</h1>
<a
href=
"${reverse('verify_student/photo_id_upload')}"
>
Upload Photo ID
</a>
</
%
block>
lms/templates/verify_student/final_verification.html
0 → 100644
View file @
086f5564
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"content"
>
Final Verification!
</
%
block>
lms/templates/verify_student/photo_id_upload.html
0 → 100644
View file @
086f5564
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"content"
>
<h1>
Photo ID Upload!
</h1>
<a
href=
"${reverse('verify_student/final_verification')}"
>
Final Verification
</a>
</
%
block>
lms/templates/verify_student/show_requirements.html
0 → 100644
View file @
086f5564
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"content"
>
<h1>
Requirements Page!
</h1>
<a
href=
"${reverse('verify_student/face_upload')}"
>
Upload Face
</a>
</
%
block>
lms/urls.py
View file @
086f5564
...
...
@@ -61,8 +61,13 @@ urlpatterns = ('', # nopep8
url
(
r'^heartbeat$'
,
include
(
'heartbeat.urls'
)),
url
(
r'^user_api/'
,
include
(
'user_api.urls'
)),
)
if
settings
.
MITX_FEATURES
.
get
(
"MULTIPLE_ENROLLMENT_ROLES"
):
urlpatterns
+=
(
url
(
r'^verify_student/'
,
include
(
'verify_student.urls'
)),)
js_info_dict
=
{
'domain'
:
'djangojs'
,
'packages'
:
(
'lms'
,),
...
...
@@ -340,6 +345,7 @@ if settings.COURSEWARE_ENABLED:
name
=
'submission_history'
),
)
if
settings
.
COURSEWARE_ENABLED
and
settings
.
MITX_FEATURES
.
get
(
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
):
urlpatterns
+=
(
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/instructor_dashboard$'
,
...
...
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