{#
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (c) 2026 Johannes Löhnert <loehnert.kde@gmx.de>
#}

{% if fields %}
    <h2>Dashboard <button onclick="load_all();">Refresh</button></h2>
    <ul class="dashboard">
    {% for field in fields|list %}
        {% if loop.index0 in dash_breaks %}
            </ul><ul class="dashboard">
        {% endif %}
        {% if field %}
            <li>
            {% include 'field_dashwidget.html' %}
            </li>
        {% else %}
            <li class="empty"></li>
        {% endif %}
    {% endfor %}
    </ul>
{% endif %}

<h2>Parameter Groups</h2>
<ul>
{% for group_id, group in groups.items() %}
    <li><a href='group-{{ group_id }}'>#{{ group.name }}</a></li>
{% endfor %}
</ul>
<script>$(document).ready(load_all);</script>
