From 2f6c95dd511cf6c45aa8d171e6112ef7573495c9 Mon Sep 17 00:00:00 2001 From: StarFleetCPTN Date: Fri, 11 Apr 2025 07:29:29 -0700 Subject: [PATCH] feat: Add schedule builder functionality to job form - Introduced a new scheduling interface allowing users to select between interval, daily, weekly, monthly, or custom cron expressions. - Implemented dynamic UI updates to show relevant input fields based on the selected schedule type. - Enhanced cron expression parsing to pre-fill the form based on existing values. - Updated job form layout to accommodate the new scheduling options and improve user experience. --- components/job_form.templ | 662 ++++++++++++++++++++++++++++++- internal/web/handlers/handler.go | 8 +- 2 files changed, 656 insertions(+), 14 deletions(-) diff --git a/components/job_form.templ b/components/job_form.templ index ddc5314..c6df338 100644 --- a/components/job_form.templ +++ b/components/job_form.templ @@ -242,9 +242,250 @@ templ configSearchScript() { } +templ scheduleBuilderScript() { + +} + templ JobForm(ctx context.Context, data JobFormData) { @LayoutWithContext(getJobFormTitle(data.IsNew), ctx) { @configSearchScript() + @scheduleBuilderScript()
@@ -310,10 +551,210 @@ templ JobForm(ctx context.Context, data JobFormData) {
-