MDL-87229 course: Show nice "Other users" table in courses.
This commit is contained in:
@@ -368,7 +368,7 @@ class course_enrolment_table extends html_table implements renderable {
|
||||
$this->sort = optional_param(self::SORTVAR, self::DEFAULTSORT, PARAM_ALPHANUM);
|
||||
$this->sortdirection = optional_param(self::SORTDIRECTIONVAR, self::DEFAULTSORTDIRECTION, PARAM_ALPHA);
|
||||
|
||||
$this->attributes = array('class' => 'userenrolment table-striped');
|
||||
$this->attributes = ['class' => 'userenrolment table table-striped table-hover generaltable'];
|
||||
if (!in_array($this->sort, self::$sortablefields)) {
|
||||
$this->sort = self::DEFAULTSORT;
|
||||
}
|
||||
@@ -654,7 +654,7 @@ class course_enrolment_other_users_table extends course_enrolment_table {
|
||||
*/
|
||||
public function __construct(course_enrolment_manager $manager) {
|
||||
parent::__construct($manager);
|
||||
$this->attributes = array('class'=>'userenrolment otheruserenrolment');
|
||||
$this->attributes['class'] .= ' otheruserenrolment';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user