Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

26 linhas
1.6KB

  1. {{ $id := .Get "id" | default nil }}
  2. {{ $name := .Get "name" | default nil }}
  3. {{ $class := .Get "class" | default nil }}
  4. {{ $autocomplete := .Get "autocomplete" | default nil }}
  5. {{ $autofocus := .Get "autofocus" | default nil }}
  6. {{ $cols := .Get "cols" | default nil }}
  7. {{ $disabled := .Get "disabled" | default nil }}
  8. {{ $form := .Get "form" | default nil }}
  9. {{ $maxlength := .Get "maxlength" | default nil }}
  10. {{ $minlength := .Get "minlength" | default nil }}
  11. {{ $placeholder := .Get "placeholder" | default nil }}
  12. {{ $readonly := .Get "readonly" | default nil }}
  13. {{ $required := .Get "required" | default nil }}
  14. {{ $rows := .Get "rows" | default nil }}
  15. {{ $spellcheck := .Get "spellcheck" | default nil }}
  16. {{ $wrap := .Get "wrap" | default nil }}
  17. {{ $tabindex := .Get "tabindex" | default nil }}
  18. {{ $body := .Get "text" | default nil }}
  19. {{ partial "components/textarea.html" (dict "body" $body "attrs" (dict "id" $id "name" $name "class" $class "autocomplete" $autocomplete "autofocus" $autofocus "cols" $cols "disabled" $disabled "form" $form "maxlength" $maxlength "minlength" $minlength "placeholder" $placeholder "readonly" $readonly "required" $required "rows" $rows "spellcheck" $spellcheck "wrap" $wrap "tabindex" $tabindex)) }}
  20. {{ if eq "false" $autocomplete }}
  21. <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid autocomplete value for textarea. Did you mean \"off\" instead of %q?" $autocomplete)) }}</p>
  22. {{ end }}
  23. {{ if eq "false" $wrap }}
  24. <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid wrap value for textarea. Did you mean \"off\" instead of %q?" $wrap)) }}</p>
  25. {{ end }}