Using network name instead of id

This commit is contained in:
cuigh 2018-04-03 16:24:43 +08:00
parent d595547803
commit de811b1b1c

View File

@ -25,7 +25,7 @@
<div class="control">
{{ set := .CheckedNetworks }}
{{range .Networks}}
{{ yield checkbox(name="networks", value=.ID, label=.Name, checked=set.Contains(.Name)) }}
{{ yield checkbox(name="networks", value=.Name, label=.Name, checked=set.Contains(.Name)) }}
{{end}}
</div>
</div>