您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
795B

  1. {{ $accept_charset := .Get "acceptcharset" }}
  2. {{ $id := .Get "id" }}
  3. {{ $name := .Get "name" }}
  4. {{ $action := .Get "action" }}
  5. {{ $enctype := .Get "enctype" }}
  6. {{ $target := .Get "target" }}
  7. {{ $novalidate := .Get "novalidate" }}
  8. {{ $autocomplete := .Get "autocomplete" }}
  9. {{ $method := .Get "method" }}
  10. {{ $class := .Get "class" }}
  11. {{ $body := .Inner }}
  12. {{ 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) }}
  13. {{ if eq "false" $autocomplete }}
  14. <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid autocomplete value for form. Did you mean \"off\" instead of %q?" $autocomplete)) }}</p>
  15. {{ end }}