{{ 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 = choose(labels, values) }} {{ range i, v := values }} {{ end }} {{ end }} {{ block select(name, values, labels, selected, dt) }} {{ labels = choose(labels, values) }} {{ end }} {{ block option(value, label="", selected) }} {{ end }} {{ block options(name, items)}} {{ n := replace(name, ".", "-", -1) }} {{if items}} {{ i := 0 }} {{range k, v := items}} {{ i = i + 1 }} {{end}} {{end}}
{{ i18n("field.name") }} {{ i18n("field.value") }}
{{ end }} {{ block options_table(name, items)}} {{ n := replace(name, ".", "-", -1) }} {{if items}} {{range i, opt := items}} {{end}} {{end}}
{{ i18n("field.name") }} {{ i18n("field.value") }}
{{ end }} {{ block form_submit(url) }}
{{ i18n("button.cancel") }}
{{ end }}