]> git.ipfire.org Git - people/ms/westferry.git/commitdiff
forms: Show default value in text input boxes
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Dec 2021 17:32:12 +0000 (17:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Dec 2021 17:32:12 +0000 (17:32 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/modules/forms/inputs/text.html

index 0321ae2bf0c98897ac761c61cb9c0e941c7037c6..0236a728045fb9cfda61c61b913035fd5340311a 100644 (file)
@@ -9,6 +9,7 @@
        {% end %}
 
        <input type="{{ input.type }}" name="{{ input.name }}"
+               {% if input.value %}value="{{ input.value }}"{% end %}
                {% if input.prefix or input.suffix %}class="input-group-field"{% end %}
                {% if input.placeholder %}placeholder="{{ input.placeholder }}"{% end %}
                {% if input.disabled %}disabled{% end %}