tabel user grup dan inputan search

This commit is contained in:
sindhu
2024-05-14 15:28:40 +07:00
parent f6d04cdd62
commit 5dce26caeb
7 changed files with 81 additions and 28 deletions

View File

@@ -8,7 +8,6 @@ import (
"cpone/component/pagination"
tablecomponent "cpone/component/table"
"cpone/component/under_development"
"cpone/models"
"cpone/utils"
mastermenuusergroup "cpone/views/dev/mastermenuusergroup"
@@ -20,6 +19,7 @@ import (
"go.uber.org/zap"
breadcrumbadmin "cpone/component/breadcrumbadmin"
customtextfieldsearch "cpone/component/customtextfieldsearch"
navbarmenu "cpone/component/navbar"
sidebaruserprofile "cpone/component/sidebar_user_profile"
)
@@ -221,12 +221,24 @@ func (lh *MasterMenuUserGroupHandler) HandlerShowMasterMenuUserGroupV1(c echo.Co
// sidebar
sidebaruserprofileComponent := sidebaruserprofile.Navbaruserprofile(dataUser)
// inputan search
inputansearchComponent := customtextfieldsearch.MainCustomTextFieldSearch("q", "Cari User Group", "text", "", "", "", "")
// table user group
tabelusergroupComponent := tablecomponent.Table(
[]string{"KODE", "USERGROUP", "AKSI"},
[]string{"40%", "40%", "20%"},
mastermenuusergroup.TableRowV1(dataUserGroup),
pagination.Pagination(20, 1, "", contentID),
)
si := mastermenuusergroup.ShowMasterMenuUserGroupV1x(
"Master Menu",
mastermenuusergroup.ContentMasterMenuUserGroupV1(
contentID,
breadcrumbadmin.MainBreadcrumbAdminV1(dataBreadCrumb),
under_development.UnderDevelopment(),
tabelusergroupComponent,
inputansearchComponent,
),
mastermenuusergroup.CssMasterMenuUserGroupV1x(),