diff --git a/handlers/corporate/patient.handlers.go b/handlers/corporate/patient.handlers.go index 0365026..6bba2f9 100644 --- a/handlers/corporate/patient.handlers.go +++ b/handlers/corporate/patient.handlers.go @@ -67,10 +67,10 @@ func (ph *PatientHandler) HandleShowPatient(c echo.Context) error { } listingcomponent := corporate_patient.ListingData(listingdata, listID, - "/corp/dashboard_pat/opencetak", + "/corp/dashboard_pat/open", "#"+dialogBodyID, + "#listID, #paginationID, #dialogID, #dialogBodyID", "outerHTML", - "#dialogID, #dialogBodyID", ) paginationcomponent := pagination.PaginationV3( @@ -85,28 +85,28 @@ func (ph *PatientHandler) HandleShowPatient(c echo.Context) error { corporate_patient.AfterRequestContent(), ) - dialogBody := corporate_patient.BodyDialogPat( + bodyModal := corporate_patient.ModalBody( dialogBodyID, - corporate_patient.JSHideModal(""), + corporate_patient.JsShowModal(""), ) - dialogClose := corporate_patient.BtnClosePat( - "/corp/dashboard_pat/closecetak", + bodyClose := corporate_patient.ModalClose( + "/corp/dashboard_pat/closemodal", "#"+dialogBodyID, "outerHTML", "#"+dialogID, ) - dialogCetak := corporate_patient.PatientDialogForm( - "cetakdialog", - "/corp/dashboard_pat/cetak", + modalDialog := corporate_patient.DialogReport( + "", + "/corp/dashboard_pat/dialog", "#"+dialogBodyID, "outerHTML", - "#listID, #paginationID, #dialogID, #dialogBodyID", + "#listID, #paginationID, #dialogID, #dialogBodyID"+paginationID, dialogID, - "Cetak", - dialogBody, - dialogClose, + title, + bodyModal, + bodyClose, ) content := corporate_patient.DashboardPat( @@ -117,7 +117,7 @@ func (ph *PatientHandler) HandleShowPatient(c echo.Context) error { breadcrumb, listingcomponent, paginationcomponent, - dialogCetak, + modalDialog, ) css := corporate_patient.CSSDashboardPat() js := corporate_patient.JSDashboardPat() @@ -150,10 +150,10 @@ func (ph *PatientHandler) HandleChangePage(c echo.Context) error { } listcomponent := corporate_patient.ListingData(listData, listID, - "/corp/dashboard_pat/opencetak", + "/corp/dashboard_pat/open", "#"+dialogBodyID, + "#listID, #paginationID, #dialogID", "outerHTML", - "#dialogID, #dialogBodyID", ) paginationcomponent := pagination.PaginationV3( @@ -161,7 +161,7 @@ func (ph *PatientHandler) HandleChangePage(c echo.Context) error { page, "/corp/dashboard_pat/changepage", paginationID, - "#listID, #paginationID", + "#listID, #paginationID, #dialogID, #dialogBodyID, #currPage"+paginationID, "#"+paginationID, "outerHTML", "", "", corporate_patient.BeforeRequestContent(), @@ -173,32 +173,18 @@ func (ph *PatientHandler) HandleChangePage(c echo.Context) error { return utils.ViewMulti(c, retval) } -func (ph *PatientHandler) HandleOpenDialog(c echo.Context) error { +func (ph *PatientHandler) HandleOpenReport(c echo.Context) error { logger, _ := zap.NewProduction() - defer logger.Sync() id := c.QueryParam("id") - logger.Info("params", zap.Any("id", id)) dialogID := c.QueryParam("dialogID") dialogBodyID := c.QueryParam("dialogBodyID") + logger.Info("params", zap.Any("id", id)) - dialogBody := corporate_patient.BodyDialogPat( + modalBody := corporate_patient.ModalBody( dialogBodyID, - corporate_patient.JSShowModal("#"+dialogID), + corporate_patient.JsShowModal("#"+dialogID), ) - return utils.View(c, dialogBody) -} - -func (ph *PatientHandler) HandleCloseDialog(c echo.Context) error { - // logger, _ := zap.NewProduction() - - dialogBodyID := c.QueryParam("dialogBodyID") - - dialogBody := corporate_patient.BodyDialogPat( - dialogBodyID, - corporate_patient.JSHideModal(""), - ) - - return utils.View(c, dialogBody) + return utils.View(c, modalBody) } diff --git a/handlers/routes.go b/handlers/routes.go index a856c0d..1a9ca8b 100644 --- a/handlers/routes.go +++ b/handlers/routes.go @@ -130,12 +130,7 @@ func SetupRoutesCorporate(app *echo.Echo, appStore db.AppStore) { patientHandler := corporate_handlers.NewPatientHandler(patienServices) corp.GET("/dashboard_pat", patientHandler.HandleShowPatient) corp.GET("/dashboard_pat/changepage", patientHandler.HandleChangePage) - corp.GET("/dashboard_pat/opencetak", patientHandler.HandleOpenDialog) - corp.POST("/dashboard_pat/closecetak", patientHandler.HandleCloseDialog) - - // dev.GET("/md/samplestation/openedit", devMDSampleStationHandlers.HandleOpenEditForm) - // dev.POST("/md/samplestation/edit", devMDSampleStationHandlers.HandleEditMDSS) - // dev.POST("/md/samplestation/closeeditform", devMDSampleStationHandlers.HandleCloseEditForm) + corp.GET("/dashboard_pat/open", patientHandler.HandleOpenReport) } func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) { diff --git a/views/corporate/patient/listingpatient.templ b/views/corporate/patient/listingpatient.templ index 93a2702..8f3db54 100644 --- a/views/corporate/patient/listingpatient.templ +++ b/views/corporate/patient/listingpatient.templ @@ -6,10 +6,10 @@ import "strconv" templ ListingData( data []models.DashboardPatient, listID string, - hxGetCetak string, - hxTargetCetak string, - hxSwapCetak string, - hxIncludeCetak string, + hxGet string, + hxTarget string, + hxInclude string, + hxSwap string, ) {
@@ -18,19 +18,19 @@ templ ListingData( if i == (len(data) - 1) {
@ItemCard(d, - hxGetCetak, - hxTargetCetak, - hxSwapCetak, - hxIncludeCetak, + hxGet, + hxTarget, + hxInclude, + hxSwap, )
} else {
@ItemCard(d, - hxGetCetak, - hxTargetCetak, - hxSwapCetak, - hxIncludeCetak, + hxGet, + hxTarget, + hxInclude, + hxSwap, )
} @@ -42,10 +42,10 @@ templ ListingData( templ ItemCard( data models.DashboardPatient, - hxGetCetak string, - hxTargetCetak string, - hxSwapCetak string, - hxIncludeCetak string, + hxGet string, + hxTarget string, + hxInclude string, + hxSwap string, ) {
@@ -58,12 +58,10 @@ templ ItemCard( diff --git a/views/corporate/patient/listingpatient_templ.go b/views/corporate/patient/listingpatient_templ.go index 1a66eab..681a4d7 100644 --- a/views/corporate/patient/listingpatient_templ.go +++ b/views/corporate/patient/listingpatient_templ.go @@ -16,10 +16,10 @@ import "strconv" func ListingData( data []models.DashboardPatient, listID string, - hxGetCetak string, - hxTargetCetak string, - hxSwapCetak string, - hxIncludeCetak string, + hxGet string, + hxTarget string, + hxInclude string, + hxSwap 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) @@ -70,10 +70,10 @@ func ListingData( return templ_7745c5c3_Err } templ_7745c5c3_Err = ItemCard(d, - hxGetCetak, - hxTargetCetak, - hxSwapCetak, - hxIncludeCetak, + hxGet, + hxTarget, + hxInclude, + hxSwap, ).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err @@ -101,10 +101,10 @@ func ListingData( return templ_7745c5c3_Err } templ_7745c5c3_Err = ItemCard(d, - hxGetCetak, - hxTargetCetak, - hxSwapCetak, - hxIncludeCetak, + hxGet, + hxTarget, + hxInclude, + hxSwap, ).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err @@ -128,10 +128,10 @@ func ListingData( func ItemCard( data models.DashboardPatient, - hxGetCetak string, - hxTargetCetak string, - hxSwapCetak string, - hxIncludeCetak string, + hxGet string, + hxTarget string, + hxInclude string, + hxSwap 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) @@ -171,22 +171,14 @@ func ItemCard( 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 - } - templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, HandleBeforeRequestRow(strconv.Itoa(data.T_OrderHeaderID)), HandleAfterRequestRow(strconv.Itoa(data.T_OrderHeaderID))) - 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 diff --git a/views/corporate/patient/patient.templ b/views/corporate/patient/patient.templ index 504aacf..9f916fd 100644 --- a/views/corporate/patient/patient.templ +++ b/views/corporate/patient/patient.templ @@ -106,6 +106,78 @@ script AfterRequestContent() { } templ JSDashboardPat() { + } templ ShowDashboardPat( diff --git a/views/corporate/patient/patient_templ.go b/views/corporate/patient/patient_templ.go index 2efc8c8..d933516 100644 --- a/views/corporate/patient/patient_templ.go +++ b/views/corporate/patient/patient_templ.go @@ -176,6 +176,10 @@ func JSDashboardPat() templ.Component { templ_7745c5c3_Var3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } if !templ_7745c5c3_IsBuffer { _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) } diff --git a/views/corporate/patient/patientmodal.templ b/views/corporate/patient/patientmodal.templ index 5a154a0..2f7159a 100644 --- a/views/corporate/patient/patientmodal.templ +++ b/views/corporate/patient/patientmodal.templ @@ -2,31 +2,36 @@ package corporate_patient import "cpone/component/modal" -templ PatientModal( - id string, - title string, - body templ.Component, - closebtn templ.Component, +templ DialogReport( + IDComponent string, + postLink string, + hxTarget string, + hxSwap string, + hxInclude string, + modalID string, + modalTitle string, + modalBody templ.Component, + modalClose templ.Component, ) { -
- @modalcomponent.ModalViewXL(id, - title, - body, - closebtn, - ) +
+
+ @modalcomponent.ModalViewXL(modalID, + modalTitle, + modalBody, + modalClose, + ) +
} -templ BodyModal( +templ ModalBody( + IDComponent string, hxOnLoad templ.ComponentScript, ) { -
+
-
+
-
+
-
+
-
+
-
+
} -templ PatientDialogForm( - componentID string, - linkPost string, - hxTarget string, - hxSwap string, - hxInclude string, - modalID string, - modalTitle string, - dialogBody templ.Component, - dialogClose templ.Component, -) { -
- @modalcomponent.ModalViewXL(modalID, - modalTitle, - dialogBody, - dialogClose, - ) -
+script JsHideModal(modalID string) { + $(modalID).modal('hide'); } -script HandleFormBeforeRequest() { - const btnActCancel = document.querySelectorAll('.btnactcancel'); - - for (let i = 0; i < btnActCancel.length; i++) { - btnActCancel[i].setAttribute('disabled', 'true'); - } +script JsShowModal(modalID string) { + $(modalID).modal('show'); } -script HandleFormAfterRequest() { - const btnActCancel = document.querySelectorAll('.btnactcancel'); - - for (let i = 0; i < btnActCancel.length; i++) { - btnActCancel[i].removeAttribute('disabled'); - } -} - -templ BodyDialogPat( - compoenentID string, - hxOnLoad templ.ComponentScript, -) { -
- TESTING -
- -} - -templ BtnClosePat(linkClose string, targetClose string, hxSwapClose string, modalID string) { - -} - -script JSHideModal(modalID string) { - $(modalID).modal('hide') -} - -script JSShowModal(modalID string) { - $(modalID).modal('show') - - const btnActCancel = document.querySelectorAll('.btnactcancel'); - - for (let i = 0; i < btnActCancel.length; i++) { - btnActCancel[i].removeAttribute('disabled'); - } } \ No newline at end of file diff --git a/views/corporate/patient/patientmodal_templ.go b/views/corporate/patient/patientmodal_templ.go index ea41fba..a31a0e0 100644 --- a/views/corporate/patient/patientmodal_templ.go +++ b/views/corporate/patient/patientmodal_templ.go @@ -12,11 +12,16 @@ import "bytes" import "cpone/component/modal" -func PatientModal( - id string, - title string, - body templ.Component, - closebtn templ.Component, +func DialogReport( + IDComponent string, + postLink string, + hxTarget string, + hxSwap string, + hxInclude string, + modalID string, + modalTitle string, + modalBody templ.Component, + modalClose templ.Component, ) 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) @@ -30,19 +35,45 @@ func PatientModal( templ_7745c5c3_Var1 = 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 + } + templ_7745c5c3_Err = modalcomponent.ModalViewXL(modalID, + modalTitle, + modalBody, + modalClose, ).Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -53,7 +84,8 @@ func PatientModal( }) } -func BodyModal( +func ModalBody( + IDComponent string, hxOnLoad templ.ComponentScript, ) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { @@ -63,76 +95,89 @@ func BodyModal( 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_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent } ctx = templ.ClearChildren(ctx) templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, hxOnLoad) 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 @@ -144,17 +189,27 @@ func BodyModal( }) } -func PatientDialogForm( - componentID string, - linkPost string, - hxTarget string, - hxSwap string, - hxInclude string, - modalID string, - modalTitle string, - dialogBody templ.Component, - dialogClose templ.Component, -) templ.Component { +func JsHideModal(modalID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_JsHideModal_5a6b`, + Function: `function __templ_JsHideModal_5a6b(modalID){$(modalID).modal('hide'); +}`, + Call: templ.SafeScript(`__templ_JsHideModal_5a6b`, modalID), + CallInline: templ.SafeScriptInline(`__templ_JsHideModal_5a6b`, modalID), + } +} + +func JsShowModal(modalID string) templ.ComponentScript { + return templ.ComponentScript{ + Name: `__templ_JsShowModal_3767`, + Function: `function __templ_JsShowModal_3767(modalID){$(modalID).modal('show'); +}`, + Call: templ.SafeScript(`__templ_JsShowModal_3767`, modalID), + CallInline: templ.SafeScriptInline(`__templ_JsShowModal_3767`, modalID), + } +} + +func ModalClose(LinkClose string, hxTarget string, hxSwap string, modalID 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 { @@ -162,111 +217,25 @@ func PatientDialogForm( 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_Var11 := templ.GetChildren(ctx) + if templ_7745c5c3_Var11 == nil { + templ_7745c5c3_Var11 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, HandleFormBeforeRequest(), HandleFormAfterRequest()) + templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, JsHideModal(modalID)) 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 - } - templ_7745c5c3_Err = modalcomponent.ModalViewXL(modalID, - modalTitle, - dialogBody, - dialogClose, - ).Render(ctx, templ_7745c5c3_Buffer) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -276,173 +245,3 @@ func PatientDialogForm( return templ_7745c5c3_Err }) } - -func HandleFormBeforeRequest() templ.ComponentScript { - return templ.ComponentScript{ - Name: `__templ_HandleFormBeforeRequest_7fcd`, - Function: `function __templ_HandleFormBeforeRequest_7fcd(){const btnActCancel = document.querySelectorAll('.btnactcancel'); - - for (let i = 0; i < btnActCancel.length; i++) { - btnActCancel[i].setAttribute('disabled', 'true'); - } -}`, - Call: templ.SafeScript(`__templ_HandleFormBeforeRequest_7fcd`), - CallInline: templ.SafeScriptInline(`__templ_HandleFormBeforeRequest_7fcd`), - } -} - -func HandleFormAfterRequest() templ.ComponentScript { - return templ.ComponentScript{ - Name: `__templ_HandleFormAfterRequest_b055`, - Function: `function __templ_HandleFormAfterRequest_b055(){const btnActCancel = document.querySelectorAll('.btnactcancel'); - - for (let i = 0; i < btnActCancel.length; i++) { - btnActCancel[i].removeAttribute('disabled'); - } -}`, - Call: templ.SafeScript(`__templ_HandleFormAfterRequest_b055`), - CallInline: templ.SafeScriptInline(`__templ_HandleFormAfterRequest_b055`), - } -} - -func BodyDialogPat( - compoenentID string, - hxOnLoad templ.ComponentScript, -) 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 { - templ_7745c5c3_Buffer = templ.GetBuffer() - defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var16 := templ.GetChildren(ctx) - if templ_7745c5c3_Var16 == nil { - templ_7745c5c3_Var16 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, hxOnLoad) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
TESTING\r
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - if !templ_7745c5c3_IsBuffer { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) - } - return templ_7745c5c3_Err - }) -} - -func BtnClosePat(linkClose string, targetClose string, hxSwapClose string, modalID 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 { - templ_7745c5c3_Buffer = templ.GetBuffer() - defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var19 := templ.GetChildren(ctx) - if templ_7745c5c3_Var19 == nil { - templ_7745c5c3_Var19 = templ.NopComponent - } - ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templ.RenderScriptItems(ctx, templ_7745c5c3_Buffer, JSHideModal(modalID)) - 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 - } - if !templ_7745c5c3_IsBuffer { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) - } - return templ_7745c5c3_Err - }) -} - -func JSHideModal(modalID string) templ.ComponentScript { - return templ.ComponentScript{ - Name: `__templ_JSHideModal_4530`, - Function: `function __templ_JSHideModal_4530(modalID){$(modalID).modal('hide') -}`, - Call: templ.SafeScript(`__templ_JSHideModal_4530`, modalID), - CallInline: templ.SafeScriptInline(`__templ_JSHideModal_4530`, modalID), - } -} - -func JSShowModal(modalID string) templ.ComponentScript { - return templ.ComponentScript{ - Name: `__templ_JSShowModal_c20c`, - Function: `function __templ_JSShowModal_c20c(modalID){$(modalID).modal('show') - - const btnActCancel = document.querySelectorAll('.btnactcancel'); - - for (let i = 0; i < btnActCancel.length; i++) { - btnActCancel[i].removeAttribute('disabled'); - } -}`, - Call: templ.SafeScript(`__templ_JSShowModal_c20c`, modalID), - CallInline: templ.SafeScriptInline(`__templ_JSShowModal_c20c`, modalID), - } -}