oef/templates/layout/textarea.html.tpl

14 lines
673 B
Smarty

{{define "textarea"}}
<div class="{{if .options.formClass}}{{.options.formClass}}{{else}}form-group{{end}}">
<label class="control-label" for="{{.options.id}}">{{.options.label}}</label>
<textarea
rows="5"
name="{{.options.name}}"
class="{{if .options.inputClass}}{{.options.inputClass}}{{else}}form-control{{end}}"
id="{{.options.id}}"
placeholder="{{.options.placeholder}}" {{if .options.otherAttrs}}{{.options.otherAttrs|attr}}{{end}} {{if .options.required}}required{{end}}>
{{- if .update -}}{{- .value -}}{{- end -}}
</textarea>
{{if .options.help}}<small class="form-text text-muted">{{.options.help}}</small>{{end}}
</div>
{{end}}