fix: client software overview shows client roles only

The overview is always limited to devices whose role is listed in
software_device_roles, now "Client" and "Windows Client" by default and
matched by name or slug (windows-client from the Windows agent). The role
filter offers only these roles as checkboxes; none ticked means all client
roles, so servers can no longer appear by clearing the filter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-18 14:25:12 +01:00
1 parent e24a12164c
commit 7d267ec05d
7 files changed
+59 -20

No files matched your search

@@ -33,8 +33,15 @@
{{ form.tenant_id }}
</div>
<div class="col-12 col-md-6 col-xl-2">
<label class="form-label" for="{{ form.role_id.id_for_label }}">Gerätrolle</label>
{{ form.role_id }}
<span class="form-label d-block">Gerätrolle</span>
{% for choice in form.role_id %}
<div class="form-check form-check-inline">
{{ choice.tag }}
<label class="form-check-label" for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
</div>
{% empty %}
<div class="text-danger small">Keine Client-Rolle gefunden (<code>software_device_roles</code>)</div>
{% endfor %}
</div>
<div class="col-12 col-md-6 col-xl-2">
<label class="form-label" for="id_q">Software suchen</label>