{{define "formtabler_textinput"}}
{{if eq .Type "static"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Static" .Label}}</label>
  <div class="form-control-plaintext">{{defaultVal "Input value" .Value}}</div>
</div>
{{else if eq .Type "password"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Password" .Label}}</label>
  <input type="text" class="form-control" name="{{.Name}}" placeholder="{{defaultVal "Input placeholder" .Placeholder}}">
</div>
{{else if eq .Type "textarea"}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Textarea" .Label}}</label>
  <textarea class="form-control" name="{{.Name}}" placeholder="{{defaultVal "Textarea placeholder" .Placeholder}}">{{.Value}}</textarea>
</div>
{{else}}
<div class="mb-3">
  <label class="form-label">{{defaultVal "Text" .Label}}</label>
  <input type="text" class="form-control" name="{{.Name}}" placeholder="{{defaultVal "Input placeholder" .Placeholder}}">
</div>
{{end}}
{{end}}
