add hardcode tab daftar peserta

This commit is contained in:
2024-06-14 08:17:36 +07:00
parent e6b5435337
commit 17e1268cac
11 changed files with 367 additions and 248 deletions

View File

@@ -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)
}

View File

@@ -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)
}