Commit 189bf427 by David Ormsbee

Add messaging for user for CSV grades certs generation.

parent 3a8d4f41
......@@ -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: ->
......
......@@ -64,7 +64,7 @@
<div class="report-downloads-table" id="report-downloads-table" data-endpoint="${ section_data['list_report_downloads_url'] }" ></div>
</div>
%if settings.FEATURES.get('ALLOW_COURSE_STAFF_GRADE_DOWNLOADS') or section_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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment