You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
597B

  1. <form
  2. {{ with .id }}id="{{ . }}" {{ end }}
  3. {{ with .name }}name="{{ . }}" {{ end }}
  4. {{ with .action }}action="{{ . | safeURL }}" {{ end }}
  5. {{ with .enctype }}enctype="{{ . }}" {{ end }}
  6. {{ with .target }}target="{{ . }}" {{ end }}
  7. {{ with .accept_charset }}accept-charset="{{ . }}" {{ end }}
  8. {{ if eq .novalidate "true" }}novalidate {{ end }}
  9. {{ if in (slice "on" "off") .autocomplete }}autocomplete="{{ .autocomplete }}" {{ end }}
  10. {{ if in (slice "get" "post") .method }}method="{{ .method }}" {{ end }}
  11. class="form{{ with .class }} {{ . }}{{ end }}">
  12. {{- .body -}}
  13. </form>