package bulkupdate import ( "fmt" "examples/shared" ) templ demo(users []user) {

Select Rows And Activate Or Deactivate Below

@tbody(users, map[int]bool{})
Name Email Status
Activate
Deactivate
} templ tbody(users []user, modified map[int]bool) { for k, u := range users { { u.name } { u.email } if u.active { Active } else { Inactive } } } templ Index(users []user) { @shared.Layout("Bulk Update") {

Bulk Update

@demo(users) } }