diff --git a/edit_form.php b/edit_form.php index ee018cd..0a04e95 100644 --- a/edit_form.php +++ b/edit_form.php @@ -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')); } } } diff --git a/lang/en/customcert.php b/lang/en/customcert.php index c1873d0..56ddeda 100644 --- a/lang/en/customcert.php +++ b/lang/en/customcert.php @@ -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';