fix: [UI] Change role name for admin view and add title

pull/6788/head
Jakub Onderka 2020-12-22 18:11:35 +01:00
parent b325ec58d4
commit ccdd1de5d9
2 changed files with 4 additions and 2 deletions

View File

@ -30,8 +30,9 @@
}
$headersHtml .= sprintf(
'<th%s>%s</th>',
'<th%s%s>%s</th>',
!empty($classes) ? ' class="' . implode(' ', $classes) .'"' : '',
!empty($header['header_title']) ? ' title="' . h($header['header_title']) . '"' : '',
$header_data
);
}

View File

@ -39,7 +39,8 @@ $fields = [
foreach ($permFlags as $k => $permFlag) {
$fields[] = [
'name' => Inflector::Humanize(substr($k, 5)),
'name' => $isAdmin ? $permFlag['text'] : Inflector::Humanize(substr($k, 5)),
'header_title' => $permFlag['title'],
'sort' => 'Role.' . $k,
'data_path' => 'Role.' . $k,
'element' => 'boolean',