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
588cde69
Commit
588cde69
authored
Jun 13, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making code changes for survey availability
parent
b1d60e59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
templates/exit_survey.html
+9
-0
templates/profile.html
+9
-5
No files found.
templates/exit_survey.html
View file @
588cde69
...
...
@@ -14,6 +14,15 @@
<section
id=
"survey"
class=
"main-content"
>
<form
id=
"survey_form"
>
if certificate_state['state'] == "downloadable":
%if certificate_state['download_url']:
<a
href=
"${certificate_state['download_url']}"
target=
"_blank"
>
Download Certificate
</a>
%endif
%if certificate_state['graded_download_url']:
<a
href=
"${certificate_state['graded_download_url']}"
target=
"_blank"
>
Download Certificate (with Grade)
</a>
%endif
%endif
%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>
...
...
templates/profile.html
View file @
588cde69
...
...
@@ -145,11 +145,15 @@ $(function() {
%if certificate_state['state'] == "requestable":
<a
class=
"cert_request_link"
href=
"/certificate_request"
>
Request Certificate
</a>
%elif certificate_state['state'] == "downloadable":
%if certificate_state['download_url']:
<a
href=
"${certificate_state['download_url']}"
target=
"_blank"
>
Download Certificate
</a>
%endif
%if certificate_state['graded_download_url']:
<a
href=
"${certificate_state['graded_download_url']}"
target=
"_blank"
>
Download Certificate (with Grade)
</a>
%if took_survey:
%if certificate_state['download_url']:
<a
href=
"${certificate_state['download_url']}"
target=
"_blank"
>
Download Certificate
</a>
%endif
%if certificate_state['graded_download_url']:
<a
href=
"${certificate_state['graded_download_url']}"
target=
"_blank"
>
Download Certificate (with Grade)
</a>
%endif
%else:
<a
class=
"survey_link"
href=
"/exit_survey"
>
Download Certificates
</a>
%endif
%elif certificate_state['state'] == "generating":
...
...
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