{% extends "base.html" %} {% block title %}Devices – {{ app_name }}{% endblock %} {% block page_title %}Devices{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ devices|selectattr('status','equalto','active')|list|length }}

Active

{{ devices|selectattr('status','equalto','inactive')|list|length }}

Offline

{{ devices|selectattr('status','equalto','maintenance')|list|length }}

Maintenance

{{ devices|length }}

Total

{{ devices|selectattr('wmt_enabled')|list|length }}

WMT Enabled

{{ pending_count }}

Pending Approval
Export CSV
{% for device in devices %} {% set has_mac = device.mac_address is not none and device.mac_address != '' %} {% set is_wmt = device.wmt_enabled %} {% set has_pending = has_mac and (pending_by_mac.get(device.mac_address, 0) > 0) %} {% else %} {% endfor %}
Work Place Hostname IP MAC / Type WMT Status Card Logs Last Seen Config Sync Actions
{{ device.nume_masa or '—' }} {% if is_wmt %}
WMT {% endif %}
{{ device.hostname }} {{ device.device_ip }} {% if has_mac %} {{ device.mac_address }} {% else %} {% endif %} {% if is_wmt %} {% else %} {% endif %} {% if device.status == 'active' %} Active {% elif device.status == 'maintenance' %} Maintenance {% else %} Offline {% endif %} {% if is_wmt or has_mac %} {% if device.card_presence == 'enable' %} enable {% else %} disable {% endif %} {% else %} {% endif %} {{ device_log_counts.get(device.id, 0) }} {% if device.last_seen %} {{ device.last_seen | local_dt }} {% else %}—{% endif %} {% if not has_mac %} {% elif has_pending %} {# Unknown device waiting for admin approval #} Pending Approval {% elif device.config_synced_at %} {# Device checked in and server confirmed configs match #} OK · {{ device.config_synced_at | local_dt('%m-%d %H:%M') }} {% elif device.config_updated_at %} {# Admin pushed config but client hasn't confirmed sync yet #} Awaiting client {% else %} {# WMT device registered but never checked in #} Never synced {% endif %} {% if is_wmt or has_mac %} {% endif %}
No devices registered yet.
Legend: WMT enabled — device has checked in via the WMT client No WMT check-in recorded OK — client confirmed configs match Awaiting client — server pushed new config, waiting for client check-in Pending Approval — new/unknown device waiting for admin Never synced — registered but hasn't checked in
{% endblock %} {% block extra_js %} {% endblock %}