package templates
import "git.jmbit.de/jmb/goipam/db"
import "fmt"
templ SubnetsPage(metaContent MetaContent, subnets []db.Subnet) {
@wrapBase(metaContent, "Subnets") {
}
}
templ subnetsTable(subnets []db.Subnet) {
Subnets
Name |
Display Name |
VLAN |
IPv4 |
IPv6 |
Location |
Comment |
}
templ subnetsTableRows(subnets []db.Subnet) {
for _, subnet := range subnets {
{ subnet.Name } |
{ subnet.DisplayName } |
{ fmt.Sprint(subnet.VLAN) } |
{ subnet.IPv4Net } |
{ subnet.IPv6Net } |
{ subnet.Location().Name } |
{ subnet.Comment } |
}
}