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
cbc39860
Commit
cbc39860
authored
Jun 13, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove access to survey
parent
0fe79b7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
17 deletions
+1
-17
djangoapps/certificates/views.py
+0
-4
templates/cert_request.html
+0
-12
urls.py
+1
-1
No files found.
djangoapps/certificates/views.py
View file @
cbc39860
...
@@ -46,10 +46,6 @@ def certificate_request(request):
...
@@ -46,10 +46,6 @@ def certificate_request(request):
if
len
(
error
)
>
0
:
if
len
(
error
)
>
0
:
return
return_error
(
error
)
return
return_error
(
error
)
survey_response
=
record_exit_survey
(
request
,
internal_request
=
True
)
if
not
survey_response
[
'success'
]:
return
return_error
(
survey_response
[
'error'
]
)
grade
=
None
grade
=
None
student_gradesheet
=
grades
.
grade_sheet
(
request
.
user
)
student_gradesheet
=
grades
.
grade_sheet
(
request
.
user
)
grade
=
student_gradesheet
[
'grade'
]
grade
=
student_gradesheet
[
'grade'
]
...
...
templates/cert_request.html
View file @
cbc39860
...
@@ -35,18 +35,6 @@
...
@@ -35,18 +35,6 @@
</ul>
</ul>
</fieldset>
</fieldset>
%if not took_survey:
<fieldset
id=
"survey_fieldset"
>
<h1>
Thank you for taking 6.002x! You could help us a lot by filling out this (optional) survey.
</h1>
<p>
This survey is collected only for research purposes. It is completely optional and will not affect your grade.
</p>
${survey_fields.body(survey_list)}
</fieldset>
%endif
<input
type=
"submit"
id=
""
value=
"Generate Certificate"
/>
<input
type=
"submit"
id=
""
value=
"Generate Certificate"
/>
</form>
</form>
...
...
urls.py
View file @
cbc39860
...
@@ -44,7 +44,7 @@ urlpatterns = ('',
...
@@ -44,7 +44,7 @@ urlpatterns = ('',
if
settings
.
END_COURSE_ENABLED
:
if
settings
.
END_COURSE_ENABLED
:
urlpatterns
+=
(
urlpatterns
+=
(
url
(
r'^certificate_request$'
,
'certificates.views.certificate_request'
),
url
(
r'^certificate_request$'
,
'certificates.views.certificate_request'
),
url
(
r'^exit_survey$'
,
'student.views.record_exit_survey'
),
#
url(r'^exit_survey$','student.views.record_exit_survey'),
)
)
if
settings
.
PERFSTATS
:
if
settings
.
PERFSTATS
:
...
...
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