{% if value | length %}
{% set cellStyle = 'text-align: left; font-size: inherit; padding: 4px; border: 1px solid;' %} {% for colId, col in field.columns %} {% endfor %} {% for rowId, row in value %} {% for colId, col in field.columns %} {% set cellValue = row[colId] ?? '' %} {% switch col.type %} {% case 'checkbox' %} {% case 'color' %} {% case 'select' %} {% case 'heading' %} {% case 'date' %} {% case 'time' %} {% default %} {% endswitch %} {% endfor %} {% endfor %}
{{ col.heading | t('formie') }}
{{ (row[colId] ?? false) ? '☑' : '☒' }} {{ cellValue }} {% for option in col.options %} {% if option.value == cellValue %} {{ option.label | t('formie') }} {% endif %} {% endfor %} {{ cellValue }} {{ cellValue.format('Y-m-d') ?? '' }} {{ cellValue.format('H:i') ?? '' }} {{ cellValue }}
{% endif %}