Allow to filter event log by device

This commit is contained in:
Raphael Michel
2020-09-03 14:30:21 +02:00
parent fae35cc56f
commit 5f86fbc21d
2 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,14 @@
</option>
{% endif %}
{% endfor %}
{% for d in devicelist %}
{% if d.device__id %}
<option value="d-{{ d.device__id }}"
{% if "d-" in request.GET.user and request.GET.user|slice:"2:" == d.device__id|slugify %}selected="selected"{% endif %}>
{{ d.device__name }}
</option>
{% endif %}
{% endfor %}
</select>
<button class="btn btn-primary" type="submit">{% trans "Filter" %}</button>
</p>