oef/templates/layout/textarea.html.tpl

15 lines
673 B
Smarty
Raw Normal View History

2020-02-05 14:12:08 +01:00
{{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}}