package form import ( "context" "fmt" "github.com/starfleetcptn/gomft/components" // For LayoutWithContext "github.com/starfleetcptn/gomft/components/notifications/types" "github.com/starfleetcptn/gomft/components/notifications/form/utils" "github.com/starfleetcptn/gomft/components/notifications/form/fields" // Import fields ) templ NotificationForm(ctx context.Context, data types.NotificationFormData) { @FormScripts() // Include the form-specific scripts @components.LayoutWithContext(utils.GetNotificationFormTitle(data.IsNew), ctx) {
if data.SuccessMessage != "" { } if data.ErrorMessage != "" { }

{ utils.GetNotificationFormTitle(data.IsNew) }

Back to Notification Services
@fields.EmailFields(data) @fields.WebhookFields(data) @fields.PushbulletFields(data) @fields.NtfyFields(data) @fields.GotifyFields(data) @fields.PushoverFields(data)

Configure your notification service to receive alerts for job events. Different notification types have different configuration options.

} }