{% macro render_field(construct, field, type, view, data=None, ds=None, errors=None) %} {% if type.secret and data %}
{{ value }}
{% endif %}{{ curr }}
{% elif t.field_type == 'enum' %}{{ t.format_value(f, item) }}
{% elif t.orgmode %}{{ t.format_value(f, item) }}
{% endif %} {% else %} {% set input_name = field ~ "-" ~ item_id ~ "-" ~ f %} {% if t.field_type == 'bool' %}{{ construct.t("crud-no-items-found") }}
{% endif %} {% endif %} {% if not type.readonly and type.can_add %} {% if type.layout == 'form' %}{{ construct.t("crud-validation-errors") }}