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
189bf427
Commit
189bf427
authored
Nov 21, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add messaging for user for CSV grades certs generation.
parent
3a8d4f41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lms/static/coffee/src/instructor_dashboard/data_download.coffee
+4
-1
lms/templates/instructor/instructor_dashboard_2/data_download.html
+3
-1
No files found.
lms/static/coffee/src/instructor_dashboard/data_download.coffee
View file @
189bf427
...
...
@@ -158,6 +158,9 @@ class ReportDownloads
POLL_INTERVAL
,
=>
@
reload_report_downloads
()
)
@
$generate_certificates_from_grades_csv_response
=
@
$section
.
find
'div#generate-certificates-from-grades-csv-response'
@
$generate_certificates_from_grades_csv_error
=
@
$section
.
find
'div#generate-certificates-from-grades-csv-error'
@
$generate_certificates_from_grades_csv_selector
=
@
$section
.
find
(
"select#generate-certificates-from-grades-csv-selector"
)
@
$generate_certificates_from_grades_csv_btn
=
@
$section
.
find
(
"input[name='generate-certificates-from-grades-csv']'"
)
@
$generate_certificates_from_grades_csv_btn
.
attr
(
"disabled"
,
true
)
...
...
@@ -173,7 +176,7 @@ class ReportDownloads
@
$reports_request_response_error
.
text
gettext
(
"Error generating certificates from grades report."
)
$
(
".msg-error"
).
css
({
"display"
:
"block"
})
success
:
(
data
)
=>
@
$
reports_request
_response
.
text
data
[
'status'
]
@
$
generate_certificates_from_grades_csv
_response
.
text
data
[
'status'
]
$
(
".msg-confirm"
).
css
({
"display"
:
"block"
})
reload_report_downloads
:
->
...
...
lms/templates/instructor/instructor_dashboard_2/data_download.html
View file @
189bf427
...
...
@@ -64,7 +64,7 @@
<div
class=
"report-downloads-table"
id=
"report-downloads-table"
data-endpoint=
"${ section_data['list_report_downloads_url'] }"
></div>
</div>
%if se
ttings.FEATURES.get('ALLOW_COURSE_STAFF_GRADE_DOWNLOADS') or se
ction_data['access']['admin']:
%if section_data['access']['admin']:
<p><b>
${_("Issue Certificates from Grade Report")}
</b></p>
<p>
${_("Click to generate certificates from grade report.")}
</p>
...
...
@@ -77,6 +77,8 @@
<br/>
<input
type=
"button"
name=
"generate-certificates-from-grades-csv"
value=
"${_("
Generate
Certificates
from
Grade
Report
")}"
data-endpoint=
"${ section_data['generate_certificates_from_grades_csv'] }"
/>
</p>
<div
class=
"request-response msg msg-confirm copy"
id=
"generate-certificates-from-grades-csv-response"
></div>
<div
class=
"request-response-error msg msg-warning copy"
id=
"generate-certificates-from-grades-csv-error"
></div>
%endif
%endif
...
...
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