', get_string('noroleassignments', 'core_role'), '
'; echo $role->localname; if (has_capability('moodle/role:assign', $context)) { $raurl = $assignurl . '?contextid=' . $ra->contextid . '&roleid=' . $ra->roleid . '&removeselect[]=' . $ra->userid; $churl = $checkurl . '?contextid=' . $ra->contextid . '&reportuser=' . $ra->userid; if ($context->contextlevel == CONTEXT_USER) { $raurl .= '&userid=' . $context->instanceid; $churl .= '&userid=' . $context->instanceid; } $a = new stdClass; $a->fullname = $fullname; $a->contextlevel = $context->get_level_name(); if ($context->contextlevel == CONTEXT_SYSTEM) { $strgoto = get_string('gotoassignsystemroles', 'core_role'); $strcheck = get_string('checksystempermissionsfor', 'core_role', $a); } else { $strgoto = get_string('gotoassignroles', 'core_role', $a); $strcheck = get_string('checkuserspermissionshere', 'core_role', $a); } echo ' ' . $OUTPUT->pix_icon('t/edit', $stredit) . ' '; echo ' ' . $OUTPUT->pix_icon('t/preview', $strcheckpermissions) . ' '; echo "