<!-- TASK #{{ task._key.value }} -->
{% for key, data in task | filter((data, key) => key != '_key' and key != 'updates') -%}
{% if (key == 'created' or key == 'updated') %}
<span id="{{ task.id.value }}_{{ key }}"><b>{{ data.label }}:</b>{{ data.value is empty ? 'Никогда' :
	data.value|date('d.m.Y H:i') }}</span>
{% elseif key == 'confirmed' or key == 'hided' %}
<span id="{{ task.id.value }}_{{ key }}"><b>{{ data.label }}:</b>{% if data.value is same as(true) %}Да{% elseif
	data.value is same as(false) or data.value is empty %}Нет{% else %}{{ data.value }}{% endif %}</span>
{% else %}
<span id="{{ task.id.value }}_{{ key }}"><b>{{ data.label }}:</b>{% if data.value is same as(true) %}Да{% elseif
	data.value is same as(false) %}Нет{% elseif data.value is empty %}{% else %}{{ data.value }}{% endif %}</span>
{% endif %}
{% endfor %}
{% if account.type == 'administrator' or account.type == 'operator' %}
{% for key, data in task.updates %}
<span id="{{ task.id.value }}_{{ key }}"><b>{{ data.label }}:</b>{% if data.value is empty %}{% else %}{{ data.value }}{% endif %}</span>
{% endfor %}
{% endif %}
