package web import ( "strconv" "git.zb-server.de/ZB-Server/uptimesebi/internal/i18n" ) // AlertGroupOption is a selectable group or channel in an alert routing form. type AlertGroupOption struct { ID string Name string Default bool Checked bool } // AlertGroupQuietRow is one quiet-hours window rendered in an alert group form. type AlertGroupQuietRow struct { Start string End string TimeZone string Weekdays map[int]bool } // AlertGroupRow describes a group, its channels and its quiet hours. type AlertGroupRow struct { ID string Name string Default bool QuietNow bool Channels []AlertGroupOption QuietHours []AlertGroupQuietRow } func quietEndInput(end string) string { if end == "24:00" { return "00:00" } return end } templ alertGroupOptions(name string, options []AlertGroupOption) { for _, opt := range options { } } templ alertGroupQuietRow(prefix string, q AlertGroupQuietRow, canWrite bool) {
{ i18n.T(ctx, "alert_groups.quiet_title") }
{ i18n.T(ctx, "alert_groups.quiet_hint") }
{ i18n.T(ctx, "alert_groups.intro") }