#35 Reworded 'deletecertpage' string and added icon
This commit is contained in:
parent
9c589163a2
commit
b626e4fd43
2 changed files with 5 additions and 5 deletions
|
@ -291,11 +291,11 @@ class edit_form extends \moodleform {
|
||||||
|
|
||||||
// Add option to delete this page if there is more than one page.
|
// Add option to delete this page if there is more than one page.
|
||||||
if ($this->numpages > 1) {
|
if ($this->numpages > 1) {
|
||||||
// Link to delete the element.
|
// Link to delete the page.
|
||||||
$deletelink = new \moodle_url($editlink, $editlinkparams + array('action' => 'deletepage', 'aid' => $page->id));
|
$deletelink = new \moodle_url($editlink, $editlinkparams + array('action' => 'deletepage', 'aid' => $page->id));
|
||||||
$deletelink = \html_writer::tag('a', get_string('deletecertpage', 'customcert'),
|
$icon = $OUTPUT->pix_icon('t/delete', get_string('deletecertpage', 'customcert'));
|
||||||
array('href' => $deletelink->out(false), 'class' => 'deletebutton'));
|
$deletepagehtml = \html_writer::link($deletelink, $icon . get_string('deletecertpage', 'customcert'));
|
||||||
$mform->addElement('html', \html_writer::tag('div', $deletelink, array('class' => 'deletebutton')));
|
$mform->addElement('html', \html_writer::tag('div', $deletepagehtml, array('class' => 'deletebutton')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ $string['customcert:view'] = 'View a custom certificate';
|
||||||
$string['customcert:viewreport'] = 'View course report';
|
$string['customcert:viewreport'] = 'View course report';
|
||||||
$string['customcert:viewallcertificates'] = 'View all certificates';
|
$string['customcert:viewallcertificates'] = 'View all certificates';
|
||||||
$string['customcert:verifycertificate'] = 'Verify a certificate';
|
$string['customcert:verifycertificate'] = 'Verify a certificate';
|
||||||
$string['deletecertpage'] = 'Delete certificate page';
|
$string['deletecertpage'] = 'Delete page';
|
||||||
$string['deleteconfirm'] = 'Delete confirmation';
|
$string['deleteconfirm'] = 'Delete confirmation';
|
||||||
$string['deleteelement'] = 'Delete element';
|
$string['deleteelement'] = 'Delete element';
|
||||||
$string['deleteelementconfirm'] = 'Are you sure you want to delete this element?';
|
$string['deleteelementconfirm'] = 'Are you sure you want to delete this element?';
|
||||||
|
|
Loading…
Reference in a new issue