Optimize style

This commit is contained in:
cuigh 2018-04-04 19:33:04 +08:00
parent a60d2d39c1
commit adcdaaf3be

View File

@ -22,10 +22,12 @@
{{ block form_network() }} {{ block form_network() }}
<div class="field"> <div class="field">
<label class="label">Network</label> <label class="label">Network</label>
<div class="control"> <div class="control columns is-mobile is-multiline is-tight">
{{ set := .CheckedNetworks }} {{ set := .CheckedNetworks }}
{{range .Networks}} {{range .Networks}}
<div class="column is-one-third-desktop is-half-tablet is-half-mobile">
{{ yield checkbox(name="networks", value=.Name, label=.Name, checked=set.Contains(.Name)) }} {{ yield checkbox(name="networks", value=.Name, label=.Name, checked=set.Contains(.Name)) }}
</div>
{{end}} {{end}}
</div> </div>
</div> </div>