{% from "tungsten/forms/macros.html" import wrapper, mirror %} {% call wrapper(field, v) %} {% if v.disabled %}
{{ v.safe_html or '—' }}
{{ mirror(v) }} {% else %}
{% if v.toolbar %}
{% for group, buttons in v.toolbar %} {% if group == 'blocks' %}
{% for b in v.blocks %}
{{ b.button }}
{% endfor %}
{% else %} {% for b in buttons %} {% endfor %} {% endif %} {% if not loop.last and loop.nextitem and loop.nextitem[0] == 'history' %}{% endif %} {% endfor %}
{% if v.has_link %}
{% endif %} {% endif %}
{% if v.maxlength %}

{{ v.length }} / {{ v.maxlength }}

{% endif %}
{% endif %} {% endcall %}