chg: [genericIndex:select_visible_columns] Show meta-template versions
parent
21403995e3
commit
96041cc71a
|
@ -2012,7 +2012,11 @@ class BoostrapDropdownMenu extends BootstrapGeneric
|
|||
$params['data-open-form-id'] = mt_rand();
|
||||
}
|
||||
|
||||
$label = $this->genNode('span', ['class' => 'mx-1'], h($entry['text']));
|
||||
$labelContent = sprintf('%s%s',
|
||||
h($entry['text']),
|
||||
!empty($entry['sup']) ? $this->genNode('sup', ['class' => 'ms-1 text-muted'], $entry['sup']) : ''
|
||||
);
|
||||
$label = $this->genNode('span', ['class' => 'mx-1'], $labelContent);
|
||||
$content = $icon . $label . $badge;
|
||||
|
||||
return $this->genNode('a', array_merge([
|
||||
|
|
|
@ -22,6 +22,7 @@ if (!empty($meta_templates)) {
|
|||
$numberActiveMetaField = !empty($tableSettings['visible_meta_column'][$meta_template->id]) ? count($tableSettings['visible_meta_column'][$meta_template->id]) : 0;
|
||||
$metaTemplateColumnMenu[] = [
|
||||
'text' => $meta_template->name,
|
||||
'sup' => $meta_template->version,
|
||||
'badge' => [
|
||||
'text' => $numberActiveMetaField,
|
||||
'variant' => 'secondary',
|
||||
|
|
Loading…
Reference in New Issue