package components import ( "context" "fmt" ) type NotificationFormData struct { NotificationService *struct { ID uint Name string Description string Type string IsEnabled bool EventTriggers []string RetryPolicy string WebhookURL string Method string Headers string PayloadTemplate string SecretKey string } IsNew bool SuccessMessage string ErrorMessage string } func getNotificationFormTitle(isNew bool) string { if isNew { return "Add Notification Service" } return "Edit Notification Service" } templ NotificationForm(ctx context.Context, data NotificationFormData) { @LayoutWithContext(getNotificationFormTitle(data.IsNew), ctx) {
if data.SuccessMessage != "" { } if data.ErrorMessage != "" { }

{ getNotificationFormTitle(data.IsNew) }

Back to Notification Services

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

} }