{{define "content"}} {{with .Data}} {{$e := .Errors}}
{{range .Interfaces}}
System {{with index $e "hostName"}}{{.}}{{end}}
Uplink (WAN) {{with index $e "wan.interface"}}{{.}}{{end}}

PPPoE only:

{{with index $e "wan.pppoe.username"}}{{.}}{{end}} {{with index $e "wan.pppoe.password"}}{{.}}{{end}} {{with index $e "wan.pppoe.vlan"}}{{.}}{{end}}
LANs {{with index $e "lans"}}

{{.}}

{{end}} {{range $i, $l := .Form.LANs}} {{range $f := list "name" "interface" "vlan" "address" "prefix" "poolStart" "poolEnd"}}{{with index $e (printf "lans[%d].%s" $i $f)}}{{end}}{{end}} {{end}}
NameInterfaceVLANAddressPrefixInternetDHCPPool startPool endRemove
{{if $l.Name}}{{end}}
{{$f}}: {{.}}

Fill in the last row to add a LAN. Other LAN settings (IPv6, reservations, zones) are kept; edit them under Advanced.

{{end}} {{end}}