package addview import "github.com/tigorlazuardi/redmage/views/utils" import "fmt" import "strconv" type ScheduleInputData struct { Value string Error string Valid string Disabled bool HXSwapOOB string } templ scheduleInputContainer() { @ScheduleInput(ScheduleInputData{}) for i := 1; i < 24; i++ { } } templ ScheduleInput(data ScheduleInputData) {
if data.Disabled { } else { }
if data.Valid != "" { { data.Valid } } else if data.Error != "" { { data.Error } } else if !data.Disabled { Uses cron syntax. Tip: Start by typing 'every' to get suggestions or search custom expressions via Google like 'cron every 6 hours'. }
}