Skip to content

Commit d38efd9

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 1e9d9ca + 45e9f15 commit d38efd9

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

public/main/admin/add_courses_to_usergroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function search($needle, $type)
186186
$actions .= Display::url(get_lang('Advanced search'), '#', ['class' => 'advanced_options btn', 'id' => 'advanced_search']);
187187

188188
echo Display::toolbarAction('add_users', [$actions]);
189-
echo Display::page_header($data['name'].': '.$tool_name);
189+
echo Display::page_header($data['title'].': '.$tool_name);
190190

191191
echo '<div id="advanced_search_options" style="display:none">';
192192
$searchForm->display();

public/main/admin/add_sessions_to_usergroup.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ function validate_filter() {
9797
$onlyThisSessionList = array_column($sessionList, 'id');
9898
}
9999
}
100-
$session_list = SessionManager::get_sessions_list([], ['name'], null, null, 0, $onlyThisSessionList);
100+
$session_list = SessionManager::get_sessions_list([], ['title'], null, null, 0, $onlyThisSessionList);
101101
$elements_not_in = $elements_in = [];
102102

103103
if (!empty($session_list)) {
104104
foreach ($session_list as $session) {
105105
if (in_array($session['id'], $session_list_in)) {
106-
$elements_in[$session['id']] = $session['name'];
106+
$elements_in[$session['id']] = $session['title'];
107107
} else {
108-
$elements_not_in[$session['id']] = $session['name'];
108+
$elements_not_in[$session['id']] = $session['title'];
109109
}
110110
}
111111
}
@@ -132,7 +132,7 @@ function search_usergroup_sessions($needle, $type)
132132
$return .= '<select id="elements_not_in" name="elements_not_in_name[]" multiple="multiple" size="15" style="width:360px;">';
133133
foreach ($session_list as $row) {
134134
if (!in_array($row['id'], array_keys($elements_in))) {
135-
$return .= '<option value="'.$row['id'].'">'.$row['name'].'</option>';
135+
$return .= '<option value="'.$row['id'].'">'.$row['title'].'</option>';
136136
}
137137
}
138138
$return .= '</select>';
@@ -178,7 +178,7 @@ function search_usergroup_sessions($needle, $type)
178178
onchange="xajax_search_usergroup_sessions(this.value,\'searchbox\')" onkeyup="this.onchange()">
179179
</div>';
180180

181-
echo Display::page_header($data['name'].': '.$tool_name);
181+
echo Display::page_header($data['title'].': '.$tool_name);
182182

183183
$extra = '';
184184
if (!empty($_GET['add'])) {

public/main/admin/add_users_to_usergroup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function change_select(val) {
407407
<div class="multiple_select_header">
408408
<b><?php echo get_lang('Users on platform'); ?> :</b>
409409
<?php echo get_lang('First letter (last name)'); ?> :
410-
<select id="first_letter_user" name="firstLetterUser" onchange="change_select();">
410+
<select id="first_letter_user" name="firstLetterUser" onchange="change_select();" class="block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm">
411411
<option value = "%">--</option>
412412
<?php
413413
echo Display :: get_alphabet_options($first_letter_user);
@@ -420,7 +420,7 @@ function change_select(val) {
420420
$elements_not_in,
421421
'',
422422
[
423-
'class' => 'form-control',
423+
'class' => 'form-multiselect block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm',
424424
'multiple' => 'multiple',
425425
'id' => 'elements_not_in',
426426
'size' => '15px',
@@ -457,7 +457,7 @@ function change_select(val) {
457457
$elements_in,
458458
'',
459459
[
460-
'class' => 'form-control',
460+
'class' => 'form-multiselect block w-full mt-1 border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm',
461461
'multiple' => 'multiple',
462462
'id' => 'elements_in',
463463
'size' => '15px',

public/main/admin/usergroup_users.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
} else {
3838
$interbreadcrumb[] = ['url' => api_get_path(WEB_CODE_PATH).'user/class.php?'.api_get_cidreq(), 'name' => get_lang('Classes')];
3939
}
40-
$interbreadcrumb[] = ['url' => '#', 'name' => $userGroupInfo['name']];
40+
$interbreadcrumb[] = ['url' => '#', 'name' => $userGroupInfo['title']];
4141

4242
if (!empty($action)) {
4343
$usergroup->protectScript($userGroupInfo);
@@ -137,11 +137,11 @@
137137

138138
// Column config
139139
$column_model = [
140-
['name' => 'name', 'index' => 'name', 'width' => '35', 'align' => 'left', 'sortable' => 'false'],
140+
['name' => 'name', 'index' => 'name', 'width' => '400', 'align' => 'left', 'sortable' => 'false'],
141141
[
142142
'name' => 'actions',
143143
'index' => 'actions',
144-
'width' => '20',
144+
'width' => '250',
145145
'align' => 'center',
146146
'sortable' => 'false',
147147
'formatter' => 'action_formatter',

public/main/admin/usergroups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737

3838
//Column config
3939
$column_model = [
40-
['name' => 'title', 'index' => 'title', 'align' => 'left'],
40+
['name' => 'title', 'index' => 'title', 'align' => 'left', 'width' => '400'],
4141
['name' => 'users', 'index' => 'users', 'align' => 'left', 'search' => 'false'],
4242
['name' => 'courses', 'index' => 'courses', 'align' => 'left', 'search' => 'false'],
4343
['name' => 'sessions', 'index' => 'sessions', 'align' => 'left', 'search' => 'false'],
4444
['name' => 'group_type', 'index' => 'group_type', 'align' => 'center', 'search' => 'false'],
4545
[
4646
'name' => 'actions',
4747
'index' => 'actions',
48-
'width' => '170',
48+
'width' => '250',
4949
'align' => 'center',
5050
'sortable' => 'false',
5151
'formatter' => 'action_formatter',

public/main/inc/ajax/model.ajax.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,10 +1054,10 @@ function getWhereClause($col, $oper, $val)
10541054
$result = $calendarPlugin->getUsersPerCalendar($id);
10551055
break;
10561056
case 'get_usergroups_users':
1057-
$columns = ['name', 'actions'];
1057+
$columns = ['title', 'actions'];
10581058
if ('true' === api_get_plugin_setting('learning_calendar', 'enabled')) {
10591059
$columns = [
1060-
'name',
1060+
'title',
10611061
'calendar',
10621062
'gradebook_items',
10631063
'time_spent',

0 commit comments

Comments
 (0)