diff --git a/handlers/corporate/mcudetail/tabdaftarpeserta.handlers.go b/handlers/corporate/mcudetail/tabdaftarpeserta.handlers.go
new file mode 100644
index 0000000..37e439d
--- /dev/null
+++ b/handlers/corporate/mcudetail/tabdaftarpeserta.handlers.go
@@ -0,0 +1,38 @@
+package mcu_corporate_handlers
+
+import (
+ "cpone/utils"
+ corporate_mcudetail "cpone/views/corporate/mcu/mcutab"
+
+ "github.com/labstack/echo/v4"
+)
+
+type TabDaftarPesertaServices interface {
+}
+
+type TabDaftarPesertaHandlers struct {
+ TabDaftarPesertaServices TabDaftarPesertaServices
+}
+
+func NewTabDaftarPesertaHandlers(tdp TabDaftarPesertaServices) *TabDaftarPesertaHandlers {
+ return &TabDaftarPesertaHandlers{
+ TabDaftarPesertaServices: tdp,
+ }
+}
+
+func (tdp *TabDaftarPesertaHandlers) HandleShowTabDaftarPeserta(c echo.Context) error {
+ title := "Daftar Peserta"
+
+ content := corporate_mcudetail.TabDaftarPesertaScreen()
+ css := corporate_mcudetail.CSSTabDaftarPeserta()
+ js := corporate_mcudetail.JsTabDaftarPeserta()
+
+ view := corporate_mcudetail.ShowTabDafterPeserta(
+ title,
+ content,
+ css,
+ js,
+ )
+
+ return utils.View(c, view)
+}
diff --git a/handlers/routes.go b/handlers/routes.go
index 2ff8b71..a5e42d5 100644
--- a/handlers/routes.go
+++ b/handlers/routes.go
@@ -121,6 +121,10 @@ func SetupRoutesCorporate(app *echo.Echo, appStore db.AppStore) {
kesimpulanHdr := mcu_corporate_handlers.NewTabKesimpulanHandler(kesimpulanSrv)
corp.GET("/dashboard_pic/detail/:id/tabkesimpulan", kesimpulanHdr.HandleShowTabKesimpulanScreen)
+ daftarpesertaServ := mcu_corporate_services.NewTabDaftarPesertaServices(appStore)
+ daftarpesertaHandl := mcu_corporate_handlers.NewTabDaftarPesertaHandlers(daftarpesertaServ)
+ corp.GET("/dashboard_pic/detail/:id/tabdaftarpeserta", daftarpesertaHandl.HandleShowTabDaftarPeserta)
+
patientHandler := corporate_handlers.NewPatientHandler(l)
corp.GET("/patient", patientHandler.ShowPatient)
}
diff --git a/services/corporate/mcudetail/tabdaftarpeserta.services.go b/services/corporate/mcudetail/tabdaftarpeserta.services.go
new file mode 100644
index 0000000..181a8f5
--- /dev/null
+++ b/services/corporate/mcudetail/tabdaftarpeserta.services.go
@@ -0,0 +1,13 @@
+package mcu_corporate_services
+
+import "cpone/db"
+
+type TabDaftarPesertaServices struct {
+ TabDaftarPesertaStore db.AppStore
+}
+
+func NewTabDaftarPesertaServices(uStore db.AppStore) *TabDaftarPesertaServices {
+ return &TabDaftarPesertaServices{
+ TabDaftarPesertaStore: uStore,
+ }
+}
diff --git a/views/corporate/mcu/mcutab/tabdaftarpeserta.templ b/views/corporate/mcu/mcutab/tabdaftarpeserta.templ
new file mode 100644
index 0000000..3fe7851
--- /dev/null
+++ b/views/corporate/mcu/mcutab/tabdaftarpeserta.templ
@@ -0,0 +1,134 @@
+package corporate_mcudetail
+
+import "cpone/layout"
+
+templ TabDaftarPesertaScreen() {
+
+
+
+
+ | NO LAB |
+ NAMA |
+ JENIS KELAMIN |
+ UMUR |
+ KESIMPULAN |
+ AKSI |
+
+
+
+
+ | 21304 |
+ Abraham Kurniawan |
+ Laki - Laki |
+ 24 |
+
+
+ |
+
+
+ |
+
+
+ | 21305 |
+ Anastasia Claudia |
+ Perempuan |
+ 24 |
+
+
+
+ Unfit
+
+
+
+ Anti HBs (Positif : 752), Cholesterol sedikit meningkat
+ (218), LDL Cholesterol Direct meningkat (173)
+
+
+ |
+
+
+ |
+
+
+
+
+}
+
+templ CSSTabDaftarPeserta() {
+
+}
+
+templ JsTabDaftarPeserta() {
+
+}
+
+templ ShowTabDafterPeserta(
+ title string,
+ cmp templ.Component,
+ css templ.Component,
+ js templ.Component,
+) {
+ @layout.PlaygroundLayout(title, css, js) {
+ @cmp
+ }
+}
\ No newline at end of file
diff --git a/views/corporate/mcu/mcutab/tabdaftarpeserta_templ.go b/views/corporate/mcu/mcutab/tabdaftarpeserta_templ.go
new file mode 100644
index 0000000..6d592fc
--- /dev/null
+++ b/views/corporate/mcu/mcutab/tabdaftarpeserta_templ.go
@@ -0,0 +1,121 @@
+// Code generated by templ - DO NOT EDIT.
+
+// templ: version: v0.2.663
+package corporate_mcudetail
+
+//lint:file-ignore SA4006 This context is only used if a nested component is present.
+
+import "github.com/a-h/templ"
+import "context"
+import "io"
+import "bytes"
+
+import "cpone/layout"
+
+func TabDaftarPesertaScreen() 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_Var1 := templ.GetChildren(ctx)
+ if templ_7745c5c3_Var1 == nil {
+ templ_7745c5c3_Var1 = templ.NopComponent
+ }
+ ctx = templ.ClearChildren(ctx)
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("| NO LAB | NAMA | JENIS KELAMIN | UMUR | KESIMPULAN | AKSI |
| 21304 | Abraham Kurniawan | Laki - Laki | 24 | | |
| 21305 | Anastasia Claudia | Perempuan | 24 | Unfit Anti HBs (Positif : 752), Cholesterol sedikit meningkat\r (218), LDL Cholesterol Direct meningkat (173)\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 CSSTabDaftarPeserta() 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_Var2 := templ.GetChildren(ctx)
+ if templ_7745c5c3_Var2 == nil {
+ templ_7745c5c3_Var2 = templ.NopComponent
+ }
+ ctx = templ.ClearChildren(ctx)
+ if !templ_7745c5c3_IsBuffer {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
+ }
+ return templ_7745c5c3_Err
+ })
+}
+
+func JsTabDaftarPeserta() 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_Var3 := templ.GetChildren(ctx)
+ if templ_7745c5c3_Var3 == nil {
+ templ_7745c5c3_Var3 = templ.NopComponent
+ }
+ ctx = templ.ClearChildren(ctx)
+ if !templ_7745c5c3_IsBuffer {
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
+ }
+ return templ_7745c5c3_Err
+ })
+}
+
+func ShowTabDafterPeserta(
+ title string,
+ cmp templ.Component,
+ css templ.Component,
+ js 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)
+ if !templ_7745c5c3_IsBuffer {
+ templ_7745c5c3_Buffer = templ.GetBuffer()
+ defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
+ }
+ ctx = templ.InitializeContext(ctx)
+ templ_7745c5c3_Var4 := templ.GetChildren(ctx)
+ if templ_7745c5c3_Var4 == nil {
+ templ_7745c5c3_Var4 = templ.NopComponent
+ }
+ ctx = templ.ClearChildren(ctx)
+ templ_7745c5c3_Var5 := 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)
+ }
+ templ_7745c5c3_Err = cmp.Render(ctx, templ_7745c5c3_Buffer)
+ if templ_7745c5c3_Err != nil {
+ return templ_7745c5c3_Err
+ }
+ if !templ_7745c5c3_IsBuffer {
+ _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer)
+ }
+ return templ_7745c5c3_Err
+ })
+ templ_7745c5c3_Err = layout.PlaygroundLayout(title, css, js).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer)
+ 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
+ })
+}
diff --git a/views/corporate/mcu/mcutab/tabkesimpulan.templ b/views/corporate/mcu/mcutab/tabkesimpulan.templ
index 1022320..bf6e42b 100644
--- a/views/corporate/mcu/mcutab/tabkesimpulan.templ
+++ b/views/corporate/mcu/mcutab/tabkesimpulan.templ
@@ -26,249 +26,29 @@ templ MainKesimpulan(
}
templ CssKesimpulan() {
-
-
-
-
+ .information-title {
+ color: #0e1e28;
+ font-family: Poppins;
+ font-size: 20px;
+ font-style: normal;
+ font-weight: 600;
+ line-height: normal;
+ }
+
}
templ JsKesimpulan() {
diff --git a/views/corporate/mcu/mcutab/tabkesimpulan_templ.go b/views/corporate/mcu/mcutab/tabkesimpulan_templ.go
index 273763b..ee6dc23 100644
--- a/views/corporate/mcu/mcutab/tabkesimpulan_templ.go
+++ b/views/corporate/mcu/mcutab/tabkesimpulan_templ.go
@@ -84,7 +84,7 @@ func CssKesimpulan() templ.Component {
templ_7745c5c3_Var2 = 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
}
diff --git a/views/corporate/mcu/mcutabview.templ b/views/corporate/mcu/mcutabview.templ
index 5f69f8e..62e7f1f 100644
--- a/views/corporate/mcu/mcutabview.templ
+++ b/views/corporate/mcu/mcutabview.templ
@@ -24,7 +24,7 @@ templ TabViewMcuDetail(
Kesimpulan
- Daftar Peserta
+ Daftar Peserta
@@ -49,7 +49,8 @@ templ TabViewMcuDetail(
}
\ No newline at end of file
diff --git a/views/corporate/mcu/mcutabview_templ.go b/views/corporate/mcu/mcutabview_templ.go
index 2418d0c..1ccf847 100644
--- a/views/corporate/mcu/mcutabview_templ.go
+++ b/views/corporate/mcu/mcutabview_templ.go
@@ -38,7 +38,20 @@ func TabViewMcuDetail(
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" hx-target=\"#tabkesimpulan\">KesimpulanDaftar Peserta")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" hx-target=\"#tabkesimpulan\">KesimpulanDaftar Peserta")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/views/dev/mcu/tabviewdetailmcu.templ b/views/dev/mcu/tabviewdetailmcu.templ
index 0ee89ff..148ef6e 100644
--- a/views/dev/mcu/tabviewdetailmcu.templ
+++ b/views/dev/mcu/tabviewdetailmcu.templ
@@ -24,7 +24,7 @@ templ TabViewDetailMcu(
Kesimpulan
- Daftar Peserta
+ Daftar Peserta
@@ -49,7 +49,9 @@ templ TabViewDetailMcu(
}
diff --git a/views/dev/mcu/tabviewdetailmcu_templ.go b/views/dev/mcu/tabviewdetailmcu_templ.go
index c6161ea..d144ee8 100644
--- a/views/dev/mcu/tabviewdetailmcu_templ.go
+++ b/views/dev/mcu/tabviewdetailmcu_templ.go
@@ -38,7 +38,20 @@ func TabViewDetailMcu(
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" hx-target=\"#tabkesimpulan\">KesimpulanDaftar Peserta")
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\" hx-target=\"#tabkesimpulan\">KesimpulanDaftar Peserta")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}