MDL-58928 enrol: delete and edit icon alt attribute
This commit is contained in:
@@ -236,7 +236,9 @@ class enrol_cohort_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol_user($instance, $ue) && has_capability('enrol/cohort:unenrol', $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,9 @@ class enrol_database_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol_user($instance, $ue) && has_capability('enrol/database:unenrol', $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
@@ -132,11 +132,15 @@ class enrol_flatfile_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol_user($instance, $ue) && has_capability("enrol/flatfile:unenrol", $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
if ($this->allow_manage($instance) && has_capability("enrol/flatfile:manage", $context)) {
|
||||
$url = new moodle_url('/enrol/editenrolment.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', ''), get_string('edit'), $url, array('class'=>'editenrollink', 'rel'=>$ue->id));
|
||||
$stredit = get_string('editenrolment', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', $stredit, 'moodle', array('title' => $stredit)),
|
||||
$stredit, $url, array('class' => 'editenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
+6
-4
@@ -392,13 +392,15 @@ class enrol_lti_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol_user($instance, $ue) && has_capability("enrol/lti:unenrol", $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url,
|
||||
array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
if ($this->allow_manage($instance) && has_capability("enrol/lti:manage", $context)) {
|
||||
$url = new moodle_url('/enrol/editenrolment.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', ''), get_string('edit'), $url,
|
||||
array('class' => 'editenrollink', 'rel' => $ue->id));
|
||||
$stredit = get_string('editenrolment', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', $stredit, 'moodle', array('title' => $stredit)),
|
||||
$stredit, $url, array('class' => 'editenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
@@ -430,11 +430,15 @@ class enrol_manual_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol_user($instance, $ue) && has_capability("enrol/manual:unenrol", $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
if ($this->allow_manage($instance) && has_capability("enrol/manual:manage", $context)) {
|
||||
$url = new moodle_url('/enrol/editenrolment.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', ''), get_string('edit'), $url, array('class'=>'editenrollink', 'rel'=>$ue->id));
|
||||
$stredit = get_string('editenrolment', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', $stredit, 'moodle', array('title' => $stredit)),
|
||||
$stredit, $url, array('class' => 'editenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
+3
-1
@@ -110,7 +110,9 @@ class enrol_meta_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol_user($instance, $ue) && has_capability('enrol/meta:unenrol', $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
@@ -291,11 +291,15 @@ class enrol_paypal_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol($instance) && has_capability("enrol/paypal:unenrol", $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
if ($this->allow_manage($instance) && has_capability("enrol/paypal:manage", $context)) {
|
||||
$url = new moodle_url('/enrol/editenrolment.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', ''), get_string('edit'), $url, array('class'=>'editenrollink', 'rel'=>$ue->id));
|
||||
$stredit = get_string('editenrolment', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', $stredit, 'moodle', array('title' => $stredit)),
|
||||
$stredit, $url, array('class' => 'editenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
+6
-2
@@ -536,11 +536,15 @@ class enrol_self_plugin extends enrol_plugin {
|
||||
$params['ue'] = $ue->id;
|
||||
if ($this->allow_unenrol($instance) && has_capability("enrol/self:unenrol", $context)) {
|
||||
$url = new moodle_url('/enrol/unenroluser.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
|
||||
$strunenrol = get_string('unenrol', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/delete', $strunenrol),
|
||||
$strunenrol, $url, array('class' => 'unenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
if ($this->allow_manage($instance) && has_capability("enrol/self:manage", $context)) {
|
||||
$url = new moodle_url('/enrol/editenrolment.php', $params);
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', ''), get_string('edit'), $url, array('class'=>'editenrollink', 'rel'=>$ue->id));
|
||||
$stredit = get_string('editenrolment', 'enrol');
|
||||
$actions[] = new user_enrolment_action(new pix_icon('t/edit', $stredit, 'moodle', array('title' => $stredit)),
|
||||
$stredit, $url, array('class' => 'editenrollink', 'rel' => $ue->id));
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user