diff --git a/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep b/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep index 1601558a99..3f43ef36bf 100644 --- a/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep +++ b/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep @@ -41,12 +41,18 @@ <%= maketext( 'Select admin course users to add to the new course (as the stated permission) below.') =%> -
- <%= select_field 'add-admin-users' => [ map { - my $val = $db->getPermissionLevel($_)->permission; - my $level = maketext((grep { $ce->{userRoles}{$_} eq $val } keys %{ $ce->{userRoles} })[0]); - [ "$_ ($level)" => $_, $val == 20 ? (selected => undef) : () ] } $db->listUsers ], - size => 5, multiple => undef, class =>'form-select mb-1' =%> +
+ % for my $user ($db->listUsers) { + % my $val = $db->getPermissionLevel($user)->permission; + % my $role = maketext((grep { $ce->{userRoles}{$_} eq $val } keys %{ $ce->{userRoles} })[0]); +
+ +
+ % }