+ Group list add button.

This commit is contained in:
tianshujie
2023-06-12 08:52:11 +08:00
parent 39eabfe597
commit 9aa3087724
+12
View File
@@ -16,6 +16,18 @@ featureBar
set::current('all'),
);
/* zin: Define the toolbar on main menu. */
$canManagePriv = hasPriv('group', 'managePriv');
$canCreateGroup = hasPriv('group', 'create');
if($canManagePriv) $managePrivItem = array('class' => 'btn ghost', 'text' => $lang->group->managePrivByModule, 'url' => $this->createLink('group', 'managePriv', 'type=byModule'), 'data-toggle' => 'modal');
if($canCreateGroup) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->group->create, 'url' => $this->createLink('group', 'create'), 'data-toggle' => 'modal');
toolbar
(
$canManagePriv ? item(set($managePrivItem)) : null,
$canCreateGroup ? item(set($createItem)) : null,
);
jsVar('confirmDelete', $lang->group->confirmDelete);
$tableData = initTableData($groups, $config->group->dtable->fieldList, $this->group);
dtable