Moved and renamed the delete element submit button
This commit is contained in:
parent
08c4f03ee7
commit
cd2564163a
2 changed files with 4 additions and 2 deletions
|
@ -260,7 +260,9 @@ class mod_customcert_edit_form extends moodleform {
|
|||
// Add this to the objects array.
|
||||
$this->elementobjects[] = $e;
|
||||
// Add submit button to delete this.
|
||||
$mform->addElement('submit', 'deleteelement_' . $element->id, get_string('delete', 'customcert'));
|
||||
$mform->addElement('html', html_writer::start_tag('div', array('class' => 'deletecertpage')));
|
||||
$mform->addElement('submit', 'deleteelement_' . $element->id, get_string('deleteelement', 'customcert'));
|
||||
$mform->addElement('html', html_writer::end_tag('div'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,9 +31,9 @@ $string['coursetimereq_help'] = 'Enter here the minimum amount of time, in minut
|
|||
$string['customcert:addinstance'] = 'Add a new custom certificate instance';
|
||||
$string['customcert:manage'] = 'Manage a custom certificate';
|
||||
$string['customcert:view'] = 'View a custom certificate';
|
||||
$string['delete'] = 'Delete';
|
||||
$string['deletecertpage'] = 'Delete certificate page';
|
||||
$string['deleteconfirm'] = 'Delete confirmation';
|
||||
$string['deleteelement'] = 'Delete element';
|
||||
$string['deleteelementconfirm'] = 'Are you sure you want to delete this element?';
|
||||
$string['deletepageconfirm'] = 'Are you sure you want to delete this certificate page?';
|
||||
$string['editcustomcert'] = 'Edit custom certificate';
|
||||
|
|
Loading…
Reference in a new issue