{% macro formGroupRow(label, content, class, col, accounts) %} {% import _self as self %} {% if content is iterable %}
{{ self.formGroupRow(label|upper, '', 'col-6 text-warning text-right', 6, accounts) }} {% for key,value in content %} {{ self.formGroupRow(key, value, 'col-3 text-primary text-right', 9, accounts) }} {% endfor %}
{% else %}
{{ label }}
{% if label == 'url' %} {{ content }} {% elseif label == 'created_by' %} {{ accounts[content] ?? content }} {% else %} {{ content }} {% endif %}
{% endif %} {% endmacro %} {% from _self import formGroupRow %}