form(id: "gallery-checkbox-group-alerts-form", action: "#alert-routing", method: "post") do
render NitroKit::Fieldset.new(
legend: "Alert routing",
description: "Choose where each class of alert is delivered.",
html: { id: "gallery-checkbox-group-alerts-fieldset" }
) do
render NitroKit::CheckboxGroup.new(
legend: "Incident alerts",
id: "gallery-checkbox-group-incident-alerts",
name: "routing[incident]",
value: %w[pagerduty email],
orientation: :horizontal,
options: [ [ "PagerDuty", "pagerduty" ], [ "Email", "email" ], [ "Chat", "chat" ] ]
)
render NitroKit::CheckboxGroup.new(
legend: "Billing alerts",
id: "gallery-checkbox-group-billing-alerts",
name: "routing[billing]",
value: %w[email],
orientation: :horizontal,
options: [ [ "Email", "email" ], [ "Chat", "chat" ] ]
)
end
end