ElixirVault/www/system-brs-core/sys/sysEmpty/tmpl/genPluginTable.twig

21 lines
954 B
Twig

{% if LIST_DATA and LIST_DATA|length > 0 %}
{# TABLE DATA #}
{% for drow,row in LIST_DATA %}
<ul id="{{row.id}}" class="dxr {% if ROW_HEIGHT %}{{ROW_HEIGHT}}{% else %}single{% endif %}{% if loop.last %} last{% endif %}{% if row.sclass %} {{row.sclass}}{% endif %}">
{% for k,th in LIST_HEADER %}
<li class="{% if th.class %}{{th.class}}{% endif %}{% if loop.first %} first{% endif %}{% if loop.last}} last{% endif %}{% if k=="buttons" %} actions{% endif %}">
{% if row[k] and (row[k] or row[k] and row[k]=="0") %}
<div {% if th.onclick %} onclick="{{th.onclick}}" {% endif %}>
{{row[k]}}
</div>
{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
{% else %}
<div class="noresults">
{{ dt.gM('No result data found!') }}
</div>
{% endif %}