]> git.ipfire.org Git - people/ms/westferry.git/blame - src/templates/modules/forms/inputs/text.html
forms: Show default value in text input boxes
[people/ms/westferry.git] / src / templates / modules / forms / inputs / text.html
CommitLineData
1b19941d 1{% extends "base.html" %}
f33e1d2f 2
1b19941d
MT
3{% block element %}
4 {% if input.prefix or input.suffix %}
5 <div class="input-group">
6 {% if input.prefix %}
7 <span class="input-group-label">{{ input.prefix }}</span>
8 {% end %}
9 {% end %}
f33e1d2f 10
1b19941d 11 <input type="{{ input.type }}" name="{{ input.name }}"
b6d96026 12 {% if input.value %}value="{{ input.value }}"{% end %}
1b19941d
MT
13 {% if input.prefix or input.suffix %}class="input-group-field"{% end %}
14 {% if input.placeholder %}placeholder="{{ input.placeholder }}"{% end %}
15 {% if input.disabled %}disabled{% end %}
16 {% if input.readonly %}readonly{% end %} />
17
18 {% if input.prefix or input.suffix %}
19 {% if input.suffix %}
20 <span class="input-group-label">{{ input.suffix }}</span>
21 {% end %}
22 </div>
23 {% end %}
24{% end block %}