]> git.ipfire.org Git - people/ms/westferry.git/blob - src/templates/modules/forms/inputs/text.html
Refactor forms
[people/ms/westferry.git] / src / templates / modules / forms / inputs / text.html
1 {% extends "base.html" %}
2
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 %}
10
11 <input type="{{ input.type }}" name="{{ input.name }}"
12 {% if input.prefix or input.suffix %}class="input-group-field"{% end %}
13 {% if input.placeholder %}placeholder="{{ input.placeholder }}"{% end %}
14 {% if input.disabled %}disabled{% end %}
15 {% if input.readonly %}readonly{% end %} />
16
17 {% if input.prefix or input.suffix %}
18 {% if input.suffix %}
19 <span class="input-group-label">{{ input.suffix }}</span>
20 {% end %}
21 </div>
22 {% end %}
23 {% end block %}