diff --git a/assets/asset-corporate-portal/css/sas.bundle.css b/assets/asset-corporate-portal/css/sas.bundle.css index 9d4b59f..a04da05 100644 --- a/assets/asset-corporate-portal/css/sas.bundle.css +++ b/assets/asset-corporate-portal/css/sas.bundle.css @@ -5168,15 +5168,6 @@ a.text-hover-tosca:hover .svg-icon svg:hover g [fill], transition: fill 0.3s ease; } -.htmx-indicator { - display: none; -} -.htmx-request .htmx-indicator { - display: inline; -} -.htmx-request.htmx-indicator { - display: inline; -} /* ### BUTTON HOVER TEXT */ /* ### */ /* ## PRIMARY */ diff --git a/component/pagination/pagination.templ b/component/pagination/pagination.templ index 9dd55bd..72a1b7d 100644 --- a/component/pagination/pagination.templ +++ b/component/pagination/pagination.templ @@ -2,16 +2,58 @@ package pagination import "strconv" -templ Pagination(length int, currentPage int) { +templ Pagination(length int, currentPage int, link string, contentID string) { + // hx-on::before-request={ HideContent(contentID) } + // hx-on::after-request="alert('Done making a request!')"
for i:=0; i{ strconv.Itoa(i+1) } + { strconv.Itoa(i+1) } } else { - { strconv.Itoa(i+1) } + { strconv.Itoa(i+1) } } }
} + +script ShowContent(contentID string) { + console.log("Show Content"); + console.log(contentID); + document.getElementById(contentID).setAttribute("visible",""); + // document.querySelector('#'+contentID).style.display = 'block'; + // document.querySelector('#'+contentID).setAttribute("visible",""); + +} + +script HideContent(contentID string) { + console.log("Hide Content"); + console.log(contentID); + document.getElementById(contentID).setAttribute("hidden",""); + // document.querySelector('#'+contentID).style.display = 'none'; + // document.querySelector('#'+contentID).setAttribute("hidden",""); +} + +script CobaContent(contentID string) { + console.log(contentID); + +} diff --git a/component/pagination/pagination_templ.go b/component/pagination/pagination_templ.go index 51b88bc..19d4ece 100644 --- a/component/pagination/pagination_templ.go +++ b/component/pagination/pagination_templ.go @@ -12,7 +12,7 @@ import "bytes" import "strconv" -func Pagination(length int, currentPage int) templ.Component { +func Pagination(length int, currentPage int, link string, contentID string) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) if !templ_7745c5c3_IsBuffer { @@ -31,34 +31,130 @@ func Pagination(length int, currentPage int) templ.Component { } for i := 0; i < length; i++ { if (i + 1) == currentPage { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, HideContent(contentID), ShowContent(contentID)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var6 string + templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.Itoa(i + 1)) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `component\pagination\pagination.templ`, Line: 21, Col: 25} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } else { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, HideContent(contentID), ShowContent(contentID)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var3 string - templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.Itoa(i + 1)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var11 string + templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(strconv.Itoa(i + 1)) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `component\pagination\pagination.templ`, Line: 32, Col: 25} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -78,3 +174,43 @@ func Pagination(length int, currentPage int) templ.Component { return templ_7745c5c3_Err }) } + +func ShowContent(contentID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_ShowContent_cf70`, + Function: `function __templ_ShowContent_cf70(contentID){console.log("Show Content"); + console.log(contentID); + document.getElementById(contentID).setAttribute("visible",""); + // document.querySelector('#'+contentID).style.display = 'block'; + // document.querySelector('#'+contentID).setAttribute("visible",""); + +}`, + Call: templ.SafeScript(`__templ_ShowContent_cf70`, contentID), + CallInline: templ.SafeScriptInline(`__templ_ShowContent_cf70`, contentID), + } +} + +func HideContent(contentID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_HideContent_0799`, + Function: `function __templ_HideContent_0799(contentID){console.log("Hide Content"); + console.log(contentID); + document.getElementById(contentID).setAttribute("hidden",""); + // document.querySelector('#'+contentID).style.display = 'none'; + // document.querySelector('#'+contentID).setAttribute("hidden",""); +}`, + Call: templ.SafeScript(`__templ_HideContent_0799`, contentID), + CallInline: templ.SafeScriptInline(`__templ_HideContent_0799`, contentID), + } +} + +func CobaContent(contentID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_CobaContent_ef1c`, + Function: `function __templ_CobaContent_ef1c(contentID){console.log(contentID); + +}`, + Call: templ.SafeScript(`__templ_CobaContent_ef1c`, contentID), + CallInline: templ.SafeScriptInline(`__templ_CobaContent_ef1c`, contentID), + } +} diff --git a/handlers/dev/mastermenuusergroup.handlers.go b/handlers/dev/mastermenuusergroup.handlers.go index e326bc2..5cdce92 100644 --- a/handlers/dev/mastermenuusergroup.handlers.go +++ b/handlers/dev/mastermenuusergroup.handlers.go @@ -1,17 +1,22 @@ package dev_handlers import ( + "fmt" + + "strconv" + "time" + "cpone/component/pagination" tablecomponent "cpone/component/table" "cpone/models" + "cpone/utils" mastermenuusergroup "cpone/views/dev/mastermenuusergroup" - "fmt" - "strconv" services "cpone/services/dev" "github.com/a-h/templ" "github.com/labstack/echo/v4" + "go.uber.org/zap" ) type MasterMenuUserGroupService interface { @@ -47,16 +52,24 @@ func (lh *MasterMenuUserGroupHandler) HandlerShowMasterMenuUserGroup(c echo.Cont return err } dataUserGroup, err := lh.MasterMenuUserGroupService.GetUserGroup() - fmt.Println(dataUserGroup) - fmt.Println(err) + if err != nil { fmt.Println(dataUserGroup) return err } + contentID := utils.GenerateRandomID("tablebody") + + logger, _ := zap.NewProduction() + defer logger.Sync() + logger.Info("LOAD USER GROUP DEV", + zap.String("id", contentID), + zap.Any("data", dataUserGroup), + ) + si := mastermenuusergroup.ShowMasterMenuUserGroup( "Master Menu", - mastermenuusergroup.ContentMasterMenuUserGroup(dataUserGroup), + mastermenuusergroup.ContentMasterMenuUserGroup(dataUserGroup, contentID), mastermenuusergroup.CssMasterMenuUserGroup(), mastermenuusergroup.JsMasterMenuUserGroup(), dataMenu, @@ -82,6 +95,7 @@ func (lh *MasterMenuUserGroupHandler) ChangeFormEdit(c echo.Context) error { func (lh *MasterMenuUserGroupHandler) HandleChangePage(c echo.Context) error { page := c.QueryParam("page") currPage := c.QueryParam("currentPage") + contentID := c.QueryParam("contentID") dataUserGroup, err := lh.MasterMenuUserGroupService.GetUserGroup() if err != nil { @@ -98,7 +112,18 @@ func (lh *MasterMenuUserGroupHandler) HandleChangePage(c echo.Context) error { fmt.Println("currpage err") return err } - vw := tablecomponent.Table([]string{"KODE", "USERGROUP", "AKSI"}, []string{"40%", "40%", "20%"}, mastermenuusergroup.TableRow(dataUserGroup), pagination.Pagination(pageInt, currPageInt)) + logger, _ := zap.NewProduction() + defer logger.Sync() + logger.Info("CHANGE PAGE USER GROUP DEV", + zap.String("id", contentID), + zap.Any("data", dataUserGroup), + ) + time.Sleep(3 * time.Second) + // time.Sleep(5 * time.Second) + vw := tablecomponent.Table([]string{"KODE", "USERGROUP", "AKSI"}, + []string{"40%", "40%", "20%"}, + mastermenuusergroup.TableRow(dataUserGroup), + pagination.Pagination(pageInt, currPageInt, "dev/usergroup/pagination", contentID)) return lh.View(c, vw) } diff --git a/handlers/routes.go b/handlers/routes.go index 5f1bc3a..517bc95 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -183,4 +183,13 @@ func SetupRoutesDev(app *echo.Echo, appStore db.AppStore) { dvlpserv := dev_services.NewServicesLandingPage(appStore) devlphan := dev_handlers.NewLandingPageHandler(dvlpserv) dev.GET("/landingpage", devlphan.ShowLandingPage) + + //DEV USERGROUP + devUGServices := dev_services.NewServicesMasterMenuUserGroup(appStore) + devUGhandlers := dev_handlers.NewMasterMenuUserGroupHandler(devUGServices) + dev.GET("/usergroup", devUGhandlers.HandlerShowMasterMenuUserGroup) + dev.GET("/usergroup/pagination", devUGhandlers.HandleChangePage) + + // clientgroup.GET("/usergroup/edit", mastermenuusergroupHandler.ChangeFormEdit) + // clientgroup.GET("/usergroup/pagination", mastermenuusergroupHandler.HandleChangePage) } diff --git a/services/dev/mastermenuusergroup.services.go b/services/dev/mastermenuusergroup.services.go index 795ef8e..b1a97fb 100644 --- a/services/dev/mastermenuusergroup.services.go +++ b/services/dev/mastermenuusergroup.services.go @@ -8,10 +8,10 @@ import ( "cpone/models" ) -func NewServicesMasterMenuUserGroup(u MasterMenu, uStore db.AppStore) *ServicesMasterMenuUserGroup { +func NewServicesMasterMenuUserGroup(uStore db.AppStore) *ServicesMasterMenuUserGroup { return &ServicesMasterMenuUserGroup{ - MasterMenu: u, + MasterMenuUserGroupStore: uStore, } } @@ -41,7 +41,6 @@ type MasterMenu struct { } type ServicesMasterMenuUserGroup struct { - MasterMenu MasterMenu MasterMenuUserGroupStore db.AppStore } diff --git a/views/dev/mastermenuusergroup/mastermenuusergroup.templ b/views/dev/mastermenuusergroup/mastermenuusergroup.templ index df6f953..b032a26 100644 --- a/views/dev/mastermenuusergroup/mastermenuusergroup.templ +++ b/views/dev/mastermenuusergroup/mastermenuusergroup.templ @@ -12,7 +12,7 @@ import ( ) // "cpone/component/sidebar_user_profile" -templ ContentMasterMenuUserGroup(ugData []models.UserGroup) { +templ ContentMasterMenuUserGroup(ugData []models.UserGroup, contentID string) {
@@ -33,8 +33,13 @@ templ ContentMasterMenuUserGroup(ugData []models.UserGroup) {
-
- @tablecomponent.Table([]string{"KODE", "USERGROUP", "AKSI"}, []string{"40%", "40%", "20%"}, TableRow(ugData), pagination.Pagination(20, 1)) +
+ @tablecomponent.Table([]string{"KODE", "USERGROUP", "AKSI"}, []string{"40%", "40%", "20%"}, TableRow(ugData), pagination.Pagination(20, 1, "dev/usergroup/pagination", contentID)) +
+
+
+ +
@modalcomponent.Modal("dialogNew", "New - User Group", DialogNewBody("", ""), DialogNewAction(), BtnCloseNew()) @modalcomponent.Modal("dialogEdit", "Edit - User Group", DialogEditBody("", ""), DialogEditAction(), BtnCloseNew()) @@ -144,14 +149,8 @@ templ JSku() { .getElementById("modalbdyEdit") .setAttribute("style", "display:block !important;;"); } - function ShowForm() { - document - .getElementById("modalLoadEdit") - .setAttribute("style", "display:none !important;"); - document - .getElementById("modalbdyEdit") - .setAttribute("style", "display:block !important;;"); - } + + } diff --git a/views/dev/mastermenuusergroup/mastermenuusergroup_templ.go b/views/dev/mastermenuusergroup/mastermenuusergroup_templ.go index 7cea96e..8abd8f0 100644 --- a/views/dev/mastermenuusergroup/mastermenuusergroup_templ.go +++ b/views/dev/mastermenuusergroup/mastermenuusergroup_templ.go @@ -22,7 +22,7 @@ import ( ) // "cpone/component/sidebar_user_profile" -func ContentMasterMenuUserGroup(ugData []models.UserGroup) templ.Component { +func ContentMasterMenuUserGroup(ugData []models.UserGroup, contentID string) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) if !templ_7745c5c3_IsBuffer { @@ -43,15 +43,28 @@ func ContentMasterMenuUserGroup(ugData []models.UserGroup) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = tablecomponent.Table([]string{"KODE", "USERGROUP", "AKSI"}, []string{"40%", "40%", "20%"}, TableRow(ugData), pagination.Pagination(20, 1, "dev/usergroup/pagination", contentID)).Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -86,9 +99,9 @@ func TableRow(data []models.UserGroup) templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var2 := templ.GetChildren(ctx) - if templ_7745c5c3_Var2 == nil { - templ_7745c5c3_Var2 = templ.NopComponent + templ_7745c5c3_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) for _, v := range data { @@ -96,12 +109,12 @@ func TableRow(data []models.UserGroup) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var3 string - templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(v.UserGroupKode) + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(v.UserGroupKode) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 64, Col: 24} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 69, Col: 24} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -109,12 +122,12 @@ func TableRow(data []models.UserGroup) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var4 string - templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(v.UserGroupName) + var templ_7745c5c3_Var5 string + templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(v.UserGroupName) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 65, Col: 24} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 70, Col: 24} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -122,12 +135,12 @@ func TableRow(data []models.UserGroup) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var5 string - templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs("#dialogEdit" + strconv.Itoa(v.UserGroupID)) + var templ_7745c5c3_Var6 string + templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs("#dialogEdit" + strconv.Itoa(v.UserGroupID)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 73, Col: 63} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 78, Col: 63} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -135,12 +148,12 @@ func TableRow(data []models.UserGroup) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var6 string - templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs("#dialogDelete" + strconv.Itoa(v.UserGroupID)) + var templ_7745c5c3_Var7 string + templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs("#dialogDelete" + strconv.Itoa(v.UserGroupID)) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 81, Col: 65} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `views\dev\mastermenuusergroup\mastermenuusergroup.templ`, Line: 86, Col: 65} } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -184,9 +197,9 @@ func DialogDeleteAction() templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var7 := templ.GetChildren(ctx) - if templ_7745c5c3_Var7 == nil { - templ_7745c5c3_Var7 = templ.NopComponent + templ_7745c5c3_Var8 := templ.GetChildren(ctx) + if templ_7745c5c3_Var8 == nil { + templ_7745c5c3_Var8 = templ.NopComponent } ctx = templ.ClearChildren(ctx) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") @@ -208,9 +221,9 @@ func BtnCloseDelete() templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var8 := templ.GetChildren(ctx) - if templ_7745c5c3_Var8 == nil { - templ_7745c5c3_Var8 = templ.NopComponent + templ_7745c5c3_Var9 := templ.GetChildren(ctx) + if templ_7745c5c3_Var9 == nil { + templ_7745c5c3_Var9 = templ.NopComponent } ctx = templ.ClearChildren(ctx) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") @@ -232,12 +245,12 @@ func JSku() templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var9 := templ.GetChildren(ctx) - if templ_7745c5c3_Var9 == nil { - templ_7745c5c3_Var9 = templ.NopComponent + templ_7745c5c3_Var10 := templ.GetChildren(ctx) + if templ_7745c5c3_Var10 == nil { + templ_7745c5c3_Var10 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -256,9 +269,9 @@ func Pagination() templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var10 := templ.GetChildren(ctx) - if templ_7745c5c3_Var10 == nil { - templ_7745c5c3_Var10 = templ.NopComponent + templ_7745c5c3_Var11 := templ.GetChildren(ctx) + if templ_7745c5c3_Var11 == nil { + templ_7745c5c3_Var11 = templ.NopComponent } ctx = templ.ClearChildren(ctx) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
... 23 24 25 26 27 28 ...
") @@ -280,9 +293,9 @@ func CssMasterMenuUserGroup() templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var11 := templ.GetChildren(ctx) - if templ_7745c5c3_Var11 == nil { - templ_7745c5c3_Var11 = templ.NopComponent + templ_7745c5c3_Var12 := templ.GetChildren(ctx) + if templ_7745c5c3_Var12 == nil { + templ_7745c5c3_Var12 = templ.NopComponent } ctx = templ.ClearChildren(ctx) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") @@ -304,9 +317,9 @@ func JsMasterMenuUserGroup() templ.Component { defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var12 := templ.GetChildren(ctx) - if templ_7745c5c3_Var12 == nil { - templ_7745c5c3_Var12 = templ.NopComponent + templ_7745c5c3_Var13 := templ.GetChildren(ctx) + if templ_7745c5c3_Var13 == nil { + templ_7745c5c3_Var13 = templ.NopComponent } ctx = templ.ClearChildren(ctx) if !templ_7745c5c3_IsBuffer { @@ -324,12 +337,12 @@ func ShowMasterMenuUserGroup(title string, cmp templ.Component, css templ.Compon defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var13 := templ.GetChildren(ctx) - if templ_7745c5c3_Var13 == nil { - templ_7745c5c3_Var13 = templ.NopComponent + templ_7745c5c3_Var14 := templ.GetChildren(ctx) + if templ_7745c5c3_Var14 == nil { + templ_7745c5c3_Var14 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Var14 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { + templ_7745c5c3_Var15 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) if !templ_7745c5c3_IsBuffer { templ_7745c5c3_Buffer = templ.GetBuffer() @@ -344,7 +357,7 @@ func ShowMasterMenuUserGroup(title string, cmp templ.Component, css templ.Compon } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = layout.CorporateLayout(title, css, js, dataMenu, dataUser).Render(templ.WithChildren(ctx, templ_7745c5c3_Var14), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = layout.CorporateLayout(title, css, js, dataMenu, dataUser).Render(templ.WithChildren(ctx, templ_7745c5c3_Var15), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }