Hugo Dark Theme Site Generator https://after-dark.habd.as
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.

hackcss-textarea.html 1.7KB

1234567891011121314151617181920212223242526
  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. {{ $name := .Get "name" | default nil }}
  12. {{ $placeholder := .Get "placeholder" | default nil }}
  13. {{ $readonly := .Get "readonly" | default nil }}
  14. {{ $required := .Get "required" | default nil }}
  15. {{ $rows := .Get "rows" | default nil }}
  16. {{ $spellcheck := .Get "spellcheck" | default nil }}
  17. {{ $wrap := .Get "wrap" | default nil }}
  18. {{ $tabindex := .Get "tabindex" | default nil }}
  19. {{ $body := .Get "text" | default nil }}
  20. {{ 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 "name" $name "placeholder" $placeholder "readonly" $readonly "required" $required "rows" $rows "spellcheck" $spellcheck "wrap" $wrap "tabindex" $tabindex)) }}
  21. {{ if eq "false" $autocomplete }}
  22. <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid autocomplete value for textarea. Did you mean \"off\" instead of %q?" $autocomplete)) }}</p>
  23. {{ end }}
  24. {{ if eq "false" $wrap }}
  25. <p>{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid wrap value for textarea. Did you mean \"off\" instead of %q?" $wrap)) }}</p>
  26. {{ end }}