package view import "github.com/rjNemo/rentease/config" func makeItems() []string { host := config.NewHost() items := make([]string, 0, 2) for _, i := range host.Items { if i.Name == "T2" || i.Name == "T3" { items = append(items, i.Name) } } return items } var items = makeItems() func invalidTimeRange(errs []error) bool { for _, e := range errs { if e.Error() == "invalid_time_range" { return true } } return false } func missingCommunicationMethod(errs []error) bool { for _, e := range errs { if e.Error() == "missing_communication_method" { return true } } return false } templ RequestBookingForm(errors []error) {
} templ Index() { @PublicLayout() {