Readded number of certificates issued (#266)
This commit is contained in:
parent
b808ff4ead
commit
4f4a999439
2 changed files with 3 additions and 2 deletions
|
@ -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.';
|
||||
|
|
3
view.php
3
view.php
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue