Add textarea support to macros.field

This commit is contained in:
Alice Gaudon 2020-08-30 18:56:51 +02:00
parent 9db09f83cb
commit 8d7deb9d48

View File

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