{{/* Copyright (C) 2019 Josh Habdas This file is part of After Dark. After Dark is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. After Dark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -}} {{ $id := .Get "id" | default nil }} {{ $name := .Get "name" | default nil }} {{ $class := .Get "class" | default nil }} {{ $autocomplete := .Get "autocomplete" | default nil }} {{ $autofocus := .Get "autofocus" | default nil }} {{ $cols := .Get "cols" | default nil }} {{ $disabled := .Get "disabled" | default nil }} {{ $form := .Get "form" | default nil }} {{ $maxlength := .Get "maxlength" | default nil }} {{ $minlength := .Get "minlength" | default nil }} {{ $placeholder := .Get "placeholder" | default nil }} {{ $readonly := .Get "readonly" | default nil }} {{ $required := .Get "required" | default nil }} {{ $rows := .Get "rows" | default nil }} {{ $spellcheck := .Get "spellcheck" | default nil }} {{ $wrap := .Get "wrap" | default nil }} {{ $tabindex := .Get "tabindex" | default nil }} {{ $body := .Get "text" | default nil }} {{ 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)) }} {{ if eq "false" $autocomplete }}

{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid autocomplete value for textarea. Did you mean \"off\" instead of %q?" $autocomplete)) }}

{{ end }} {{ if eq "false" $wrap }}

{{ partial "components/alert.html" (dict "type" "error" "body" (errorf "Invalid wrap value for textarea. Did you mean \"off\" instead of %q?" $wrap)) }}

{{ end }}