{{ $accept_charset := .Get "acceptcharset" }}
{{ $id := .Get "id" }}
{{ $name := .Get "name" }}
{{ $action := .Get "action" }}
{{ $enctype := .Get "enctype" }}
{{ $target := .Get "target" }}
{{ $novalidate := .Get "novalidate" }}
{{ $autocomplete := .Get "autocomplete" }}
{{ $method := .Get "method" }}
{{ $class := .Get "class" }}
{{ $body := .Inner }}
{{ partial "components/form.html" (dict "id" $id "name" $name "accept_charset" $accept_charset "action" $action "enctype" $enctype "target" $target "novalidate" $novalidate "method" $method "class" $class "body" $body) }}
{{ if eq "false" $autocomplete }}
  <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid autocomplete value for form. Did you mean \"off\" instead of %q?" $autocomplete)) }}</p>
{{ end }}
