views/macros: add value property to textareas for styling

This commit is contained in:
Alice Gaudon 2020-09-15 16:26:04 +02:00
parent 3a473dd24e
commit c30df81da7

View File

@ -81,7 +81,7 @@
<i data-feather="chevron-down"></i> <i data-feather="chevron-down"></i>
{% elseif type == 'textarea' %} {% elseif type == 'textarea' %}
<textarea name="{{ name }}" id="field-{{ name }}" <textarea name="{{ name }}" id="field-{{ name }}"
{{ validation_attributes|safe }}>{{ value }}</textarea> {{ validation_attributes|safe }} value="{{ value }}">{{ value }}</textarea>
{% else %} {% else %}
<input type="{{ type }}" name="{{ name }}" id="field-{{ name }}" <input type="{{ type }}" name="{{ name }}" id="field-{{ name }}"
{% if type != 'checkbox' %} value="{{ value }}" {% endif %} {% if type != 'checkbox' %} value="{{ value }}" {% endif %}