Changed the string 'configure' to 'edit' to conform to Moodle standards
This commit is contained in:
parent
69bc06bbee
commit
1527587218
2 changed files with 6 additions and 7 deletions
|
@ -226,17 +226,17 @@ class mod_customcert_edit_form extends moodleform {
|
||||||
$deletelink = new moodle_url('/mod/customcert/edit.php', array('cmid' => $this->_customdata['cmid'], 'deleteelement' => $element->id));
|
$deletelink = new moodle_url('/mod/customcert/edit.php', array('cmid' => $this->_customdata['cmid'], 'deleteelement' => $element->id));
|
||||||
$deletelink = html_writer::tag('a', get_string('delete', 'customcert'), array('href' => $deletelink->out(false)));
|
$deletelink = html_writer::tag('a', get_string('delete', 'customcert'), array('href' => $deletelink->out(false)));
|
||||||
$row->cells[] = $deletelink;
|
$row->cells[] = $deletelink;
|
||||||
// Link to configure this element.
|
// Link to edit this element.
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['id'] = $element->id;
|
$params['id'] = $element->id;
|
||||||
$params['cmid'] = $this->_customdata['cmid'];
|
$params['cmid'] = $this->_customdata['cmid'];
|
||||||
$params['action'] = 'edit';
|
$params['action'] = 'edit';
|
||||||
$nopopupconfigurelink = new moodle_url('/mod/customcert/edit_element.php', $params);
|
$nopopupeditlink = new moodle_url('/mod/customcert/edit_element.php', $params);
|
||||||
$params['popup'] = 1;
|
$params['popup'] = 1;
|
||||||
$popupconfigurelink = new moodle_url('/mod/customcert/edit_element.php', $params);
|
$popupeditlink = new moodle_url('/mod/customcert/edit_element.php', $params);
|
||||||
$action = new popup_action('click', $popupconfigurelink, 'edit_element_popup', array('height' => 400, 'width' => 600));
|
$action = new popup_action('click', $popupeditlink, 'edit_element_popup', array('height' => 400, 'width' => 600));
|
||||||
$configurelink = $OUTPUT->action_link($nopopupconfigurelink->out(false), get_string('configure', 'customcert'), $action);
|
$editlink = $OUTPUT->action_link($nopopupeditlink->out(false), get_string('edit'), $action);
|
||||||
$row->cells[] = $configurelink;
|
$row->cells[] = $editlink;
|
||||||
// Now display any moving arrows if they are needed.
|
// Now display any moving arrows if they are needed.
|
||||||
if ($numelements > 1) {
|
if ($numelements > 1) {
|
||||||
// Only display the move up arrow if it is not the first.
|
// Only display the move up arrow if it is not the first.
|
||||||
|
|
|
@ -28,7 +28,6 @@ $string['addelement'] = 'Add element';
|
||||||
$string['awardedto'] = 'Awarded to';
|
$string['awardedto'] = 'Awarded to';
|
||||||
$string['code'] = 'Code';
|
$string['code'] = 'Code';
|
||||||
$string['copy'] = 'Copy';
|
$string['copy'] = 'Copy';
|
||||||
$string['configure'] = 'Configure';
|
|
||||||
$string['coursetimereq'] = 'Required minutes in course';
|
$string['coursetimereq'] = 'Required minutes in course';
|
||||||
$string['coursetimereq_help'] = 'Enter here the minimum amount of time, in minutes, that a student must be logged into the course before they will be able to receive the certificate.';
|
$string['coursetimereq_help'] = 'Enter here the minimum amount of time, in minutes, that a student must be logged into the course before they will be able to receive the certificate.';
|
||||||
$string['customcert:addinstance'] = 'Add a new custom certificate instance';
|
$string['customcert:addinstance'] = 'Add a new custom certificate instance';
|
||||||
|
|
Loading…
Reference in a new issue