Readded number of certificates issued (#266)

This commit is contained in:
Mark Nelson 2019-04-16 20:25:27 +08:00 committed by Mark Nelson
parent d42cbc9a16
commit 13ec235c2d
2 changed files with 3 additions and 2 deletions

View file

@ -108,7 +108,7 @@ $string['invalidwidth'] = 'The width has to be a valid number greater than 0.';
$string['landscape'] = 'Landscape';
$string['leftmargin'] = 'Left margin';
$string['leftmargin_help'] = 'This is the left margin of the certificate PDF in mm.';
$string['listofissues'] = 'Recipients';
$string['listofissues'] = 'Recipients: {$a}';
$string['load'] = 'Load';
$string['loadtemplate'] = 'Load template';
$string['loadtemplatemsg'] = 'Are you sure you wish to load this template? This will remove any existing pages and elements for this certificate.';

View file

@ -147,7 +147,8 @@ if (!$downloadown && !$downloadissue) {
echo $issuehtml;
echo $downloadbutton;
if (isset($reporttable)) {
echo $OUTPUT->heading(get_string('listofissues', 'customcert'), 3);
$numissues = \mod_customcert\certificate::get_number_of_issues($customcert->id, $cm, $groupmode);
echo $OUTPUT->heading(get_string('listofissues', 'customcert', $numissues), 3);
groups_print_activity_menu($cm, $pageurl);
echo $reporttable->out($perpage, false);
}