package web
import "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
}
// AlertGroupRow describes a group and its available notification channels.
type AlertGroupRow struct {
ID string
Name string
Default bool
Channels []AlertGroupOption
}
templ alertGroupOptions(name string, options []AlertGroupOption) {
for _, opt := range options {
}
}
templ alertGroupsSettings(v ChannelsView) {
@sectionHeading("alert_groups.title")
{ i18n.T(ctx, "alert_groups.intro") }
for _, g := range v.AlertGroups {
}
if v.CanWrite {
}