package components import ( "fmt" "context" ) type NotificationService struct { ID uint Name string Type string // "email", "webhook", etc. IsEnabled bool Config map[string]string Description string EventTriggers []string PayloadTemplate string SecretKey string RetryPolicy string SuccessCount int FailureCount int } type SettingsData struct { NotificationServices []NotificationService ErrorMessage string SuccessMessage string } templ Settings(ctx context.Context, data SettingsData) { @LayoutWithContext("Application Settings", ctx) {
Configure global settings for your GoMFT instance.
Use the form above to add your first notification service.
{ service.Name }
{ service.Description }
Last sent: if service.SuccessCount > 0 { "Recently" } else { "Never" }