diff --git a/assets/sindhu/cobasearch.html b/assets/sindhu/cobasearch.html new file mode 100644 index 0000000..9915a48 --- /dev/null +++ b/assets/sindhu/cobasearch.html @@ -0,0 +1,414 @@ + + + + + + + + + Westerindo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/views/component/customtextfield/customtextfield.templ b/views/component/customtextfield/customtextfield.templ new file mode 100644 index 0000000..189b9be --- /dev/null +++ b/views/component/customtextfield/customtextfield.templ @@ -0,0 +1,17 @@ +package customtextfield + +templ MainCustomTextField(inpLabelText, + inpName, + inpPlaceHolder, + inpType string) { +
+ + +
+} diff --git a/views/component/customtextfield/customtextfield_templ.go b/views/component/customtextfield/customtextfield_templ.go new file mode 100644 index 0000000..eaa6d1d --- /dev/null +++ b/views/component/customtextfield/customtextfield_templ.go @@ -0,0 +1,103 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.2.663 +package customtextfield + +//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" + +func MainCustomTextField(inpLabelText, + inpName, + inpPlaceHolder, + inpType 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_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("
") + 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/mastermenuusergroup/mastermenuusergroup.templ b/views/mastermenuusergroup/mastermenuusergroup.templ index 624e94f..6f174e9 100644 --- a/views/mastermenuusergroup/mastermenuusergroup.templ +++ b/views/mastermenuusergroup/mastermenuusergroup.templ @@ -5,6 +5,7 @@ import ( "github.com/emarifer/go-templ-project-structure/services" "github.com/emarifer/go-templ-project-structure/views/component/sidebarmaster" "github.com/emarifer/go-templ-project-structure/views/component/breadcrumbadmin" + "github.com/emarifer/go-templ-project-structure/views/component/customtextfield" ) @@ -191,6 +192,10 @@ templ MainMasterMenuUserGroup(datamenu []services.MasterMenu) {
@breadcrumadmin.MainBreadcrumbAdmin()
+ + // EXAMPLE INPUTAN START + @customtextfield.MainCustomTextField("Kode", "Kode", "kode", "text") + // EXAMPLE INPUTAN END diff --git a/views/mastermenuusergroup/mastermenuusergroup_templ.go b/views/mastermenuusergroup/mastermenuusergroup_templ.go index eb1a1be..b245f77 100644 --- a/views/mastermenuusergroup/mastermenuusergroup_templ.go +++ b/views/mastermenuusergroup/mastermenuusergroup_templ.go @@ -13,6 +13,7 @@ import "bytes" import ( "github.com/emarifer/go-templ-project-structure/services" "github.com/emarifer/go-templ-project-structure/views/component/breadcrumbadmin" + "github.com/emarifer/go-templ-project-structure/views/component/customtextfield" "github.com/emarifer/go-templ-project-structure/views/component/sidebarmaster" "github.com/emarifer/go-templ-project-structure/views/layout" ) @@ -104,7 +105,15 @@ func MainMasterMenuUserGroup(datamenu []services.MasterMenu) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
2020© Keenthemes

User Profile\r 12 messages

Recent Notifications\r
+28%
+50%
The\r best product\r Due in 2 Days
+8%
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = customtextfield.MainCustomTextField("Kode", "Kode", "kode", "text").Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
2020© Keenthemes

User Profile\r 12 messages

Recent Notifications\r
+28%
+50%
The\r best product\r Due in 2 Days
+8%
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }