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..e99824f 100644 --- a/component/pagination/pagination.templ +++ b/component/pagination/pagination.templ @@ -2,16 +2,42 @@ package pagination import "strconv" -templ Pagination(length int, currentPage int) { +templ Pagination(length int, currentPage int, link string, contentID string) {
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(contentID); + document.querySelector('#'+contentID).style.display = 'block'; + +} + +script HideContent(contentID string) { + console.log(contentID); + document.querySelector('#'+contentID).style.display = 'none'; + +} diff --git a/component/pagination/pagination_templ.go b/component/pagination/pagination_templ.go index 51b88bc..29e5c10 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,108 @@ 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: 18, 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_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var9 string + templ_7745c5c3_Var9, 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: 26, Col: 25} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -78,3 +152,27 @@ func Pagination(length int, currentPage int) templ.Component { return templ_7745c5c3_Err }) } + +func ShowContent(contentID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_ShowContent_beed`, + Function: `function __templ_ShowContent_beed(contentID){console.log(contentID); + document.querySelector('#'+contentID).style.display = 'block'; + +}`, + Call: templ.SafeScript(`__templ_ShowContent_beed`, contentID), + CallInline: templ.SafeScriptInline(`__templ_ShowContent_beed`, contentID), + } +} + +func HideContent(contentID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_HideContent_700f`, + Function: `function __templ_HideContent_700f(contentID){console.log(contentID); + document.querySelector('#'+contentID).style.display = 'none'; + +}`, + Call: templ.SafeScript(`__templ_HideContent_700f`, contentID), + CallInline: templ.SafeScriptInline(`__templ_HideContent_700f`, contentID), + } +} diff --git a/handlers/dev/mastermenuusergroup.handlers.go b/handlers/dev/mastermenuusergroup.handlers.go index aff3189..3683cee 100644 --- a/handlers/dev/mastermenuusergroup.handlers.go +++ b/handlers/dev/mastermenuusergroup.handlers.go @@ -4,11 +4,13 @@ import ( "fmt" "net/url" "strconv" + "time" "cpone/component/customtextfieldautocomplete" "cpone/component/pagination" tablecomponent "cpone/component/table" "cpone/models" + "cpone/utils" mastermenuusergroup "cpone/views/dev/mastermenuusergroup" services "cpone/services/dev" @@ -57,9 +59,11 @@ func (lh *MasterMenuUserGroupHandler) HandlerShowMasterMenuUserGroup(c echo.Cont return err } + contentID := utils.GenerateRandomID("tablebody") + si := mastermenuusergroup.ShowMasterMenuUserGroup( "Master Menu", - mastermenuusergroup.ContentMasterMenuUserGroup(dataUserGroup), + mastermenuusergroup.ContentMasterMenuUserGroup(dataUserGroup, contentID), mastermenuusergroup.CssMasterMenuUserGroup(), mastermenuusergroup.JsMasterMenuUserGroup(), dataMenu, @@ -252,6 +256,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 { @@ -268,7 +273,12 @@ 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)) + 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 721bab0..142dc3f 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -7,6 +7,7 @@ import ( public_handlers "cpone/handlers/public" client_services "cpone/services/client" corporate_services "cpone/services/corporate" + dev_services "cpone/services/dev" public_services "cpone/services/public" "cpone/db" @@ -176,4 +177,13 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) { public.GET("/transaksi/samplestation", txSampleStationHandler.ShowTransaksiSampleStation) } -func SetupRoutesDev(app *echo.Echo, appStore db.AppStore) {} +func SetupRoutesDev(app *echo.Echo, appStore db.AppStore) { + dev := app.Group("/dev") + 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 e7a04cb..8c63180 100644 --- a/services/dev/mastermenuusergroup.services.go +++ b/services/dev/mastermenuusergroup.services.go @@ -9,10 +9,10 @@ import ( "cpone/utils" ) -func NewServicesMasterMenuUserGroup(u MasterMenu, uStore db.MasterMenuUserGroupStore) *ServicesMasterMenuUserGroup { +func NewServicesMasterMenuUserGroup(uStore db.AppStore) *ServicesMasterMenuUserGroup { return &ServicesMasterMenuUserGroup{ - MasterMenu: u, + MasterMenuUserGroupStore: uStore, } } @@ -42,8 +42,7 @@ type MasterMenu struct { } type ServicesMasterMenuUserGroup struct { - MasterMenu MasterMenu - MasterMenuUserGroupStore db.MasterMenuUserGroupStore + MasterMenuUserGroupStore db.AppStore } type AutoComplete struct { 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 }