{% from "tungsten/forms/macros.html" import wrapper, mirror, ring %} {% call wrapper(field, v) %} {% set grouped = v.prefix or v.suffix or v.prefix_icon or v.suffix_icon or v.revealable %}
{% if v.prefix_icon or v.prefix %}
{{ icon(v.prefix_icon, 'h-5 w-5 text-gray-400') }}{% if v.prefix %}{{ v.prefix }}{% endif %}
{% endif %} {% if v.revealable %} {% endif %} {% if v.suffix_icon or v.suffix %}
{% if v.suffix %}{{ v.suffix }}{% endif %}{{ icon(v.suffix_icon, 'h-5 w-5 text-gray-400') }}
{% endif %}
{% if v.datalist %}{% for value, label in v.datalist %}{% endif %} {{ mirror(v) }} {% endcall %}