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