From 6f78182f5ca153f056db4de6a9a3a59af5d69699 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Wed, 29 May 2024 15:37:03 +0700 Subject: [PATCH] view: devices: refactor filter bar --- views/devices/filter.templ | 70 ++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/views/devices/filter.templ b/views/devices/filter.templ index e9feeee..6f71092 100644 --- a/views/devices/filter.templ +++ b/views/devices/filter.templ @@ -1,5 +1,7 @@ package devices +import "github.com/tigorlazuardi/redmage/api" + templ filter(data Data) {
- -
- - - - -
+ @searchInput(data.Params) + @statusInput(data.Params) + @limitInput(data.Params)
} + +templ searchInput(params api.DevicesListParams) { + + +} + +templ statusInput(params api.DevicesListParams) { + + +} + +templ limitInput(params api.DevicesListParams) { + + +}