{{ block switch(id, name, value, label, checked, disabled=false) }} {{ end }} {{ block checkbox(id, name, value, label, checked, disabled=false) }} {{ end }} {{ block radio(id, name, value, label, checked, disabled=false) }} {{ end }} {{ block radios(name, values, labels="", checked) }} {{ labels = eq(labels, "") ? values : labels }} {{ range i, v := values }} {{ end }} {{ end }} {{ block select(name, values, labels="", selected, dt) }} {{ labels = eq(labels, "") ? values : labels }} {{ end }} {{ block option(value, label="", selected) }} {{ end }} {{ block options(name, items)}} {{ n := replace(name, ".", "-", -1) }} {{if items}} {{ i := 0 }} {{range n, v := items}} {{ i = i + 1 }} {{end}} {{end}}
Name Value
{{ end }} {{ block options_table(name, items)}} {{ n := replace(name, ".", "-", -1) }} {{if items}} {{range i, opt := items}} {{end}} {{end}}
Name Value
{{ end }}