diff --git a/assets/asset-corporate-portal/css/sas.bundle.css b/assets/asset-corporate-portal/css/sas.bundle.css index ccd2a7d..8f72e74 100644 --- a/assets/asset-corporate-portal/css/sas.bundle.css +++ b/assets/asset-corporate-portal/css/sas.bundle.css @@ -219,6 +219,9 @@ a.text-white:focus { .bg-gray { background-color: var(--gray) !important; } +.bg-field { + background-color: var(--fieldbg) !important; +} /* ### BACKGROUND TRANSPARENT */ .bg-black-transparent { background-color: var(--dark) !important; diff --git a/assets/hanan/employee-medical-analytic.html b/assets/hanan/employee-medical-analytic.html new file mode 100644 index 0000000..4c0b470 --- /dev/null +++ b/assets/hanan/employee-medical-analytic.html @@ -0,0 +1,377 @@ + + + + + + + + + Westerindo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+
+ +
+ PT. Sadhana Abiyasa Sampoerna +
+ + + + + +
+ +
+ + + Filter + + +
+
+ + + +
+
+
+
+
+
+

MCU Calon Karyawan

+
+
+ Tanggal Pelaksanaan +
+
+ 01/04/2024 - 06/04/2024 +
+
+
+ +
+
+
+

MCU Calon Karyawan

+
+
+ Tanggal Pelaksanaan +
+
+ 01/04/2024 - 06/04/2024 +
+
+
+ +
+
+
+

MCU Calon Karyawan

+
+
+ Tanggal Pelaksanaan +
+
+ 01/04/2024 - 06/04/2024 +
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/db/employee.store.go b/db/employee.store.go new file mode 100644 index 0000000..8c49eec --- /dev/null +++ b/db/employee.store.go @@ -0,0 +1,26 @@ +package db + +import ( + "database/sql" + + _ "github.com/glebarez/go-sqlite" +) + +type EmployeeStore struct { + Db *sql.DB +} + +func NewEmployeeStore(dbName string) (EmployeeStore, error) { + Db, err := getConnection(dbName) + if err != nil { + return EmployeeStore{}, err + } + + if err := createMigrations(dbName, Db); err != nil { + return EmployeeStore{}, err + } + + return EmployeeStore{ + Db, + }, nil +} diff --git a/views/employee/employee.templ b/views/employee/employee.templ new file mode 100644 index 0000000..5ebfd73 --- /dev/null +++ b/views/employee/employee.templ @@ -0,0 +1,167 @@ +package employee + +import ( + "github.com/emarifer/go-templ-project-structure/views/layout" +) + +templ MainEmployee() { +
+ + + + +
+
+ +
+ PT. Sadhana Abiyasa Sampoerna +
+ + + + +
+
+ + + Filter + + +
+
+ + +
+
+
+
+
+
+

MCU Calon Karyawan

+
+
+ Tanggal Pelaksanaan +
+
+ 01/04/2024 - 06/04/2024 +
+
+
+
+
+
+

MCU Calon Karyawan

+
+
+ Tanggal Pelaksanaan +
+
+ 01/04/2024 - 06/04/2024 +
+
+
+
+
+
+

MCU Calon Karyawan

+
+
+ Tanggal Pelaksanaan +
+
+ 01/04/2024 - 06/04/2024 +
+
+
+
+
+
+ +
+} + +templ CssEmployee() { + +} + +templ ShowEmployee(title string, cmp templ.Component, css templ.Component, js templ.Component) { + @layout.PlaygroundLayout(title, css, js) { + @cmp + } +} diff --git a/views/employee/employee_templ.go b/views/employee/employee_templ.go new file mode 100644 index 0000000..75d5b0a --- /dev/null +++ b/views/employee/employee_templ.go @@ -0,0 +1,102 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package employee + +//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 ( + "github.com/emarifer/go-templ-project-structure/views/layout" +) + +func MainEmployee() 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("
PT. Sadhana Abiyasa Sampoerna\r

MCU Calon Karyawan

Tanggal Pelaksanaan
01/04/2024 - 06/04/2024

MCU Calon Karyawan

Tanggal Pelaksanaan
01/04/2024 - 06/04/2024

MCU Calon Karyawan

Tanggal Pelaksanaan
01/04/2024 - 06/04/2024
") + 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 CssEmployee() 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) + _, 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 ShowEmployee(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_Var3 := templ.GetChildren(ctx) + if templ_7745c5c3_Var3 == nil { + templ_7745c5c3_Var3 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var4 := 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_Var4), 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 + }) +}