{{ _('device_logs_title') }} - {{ device_id }}
{% if logs %}
{% else %}
{% endif %}
| {{ _('device_id') }} | {{ _('user_name') }} | {{ _('device_name') }} | UUID | {{ _('access_type') }} | {{ _('status') }} | {{ _('date_time') }} |
|---|---|---|---|---|---|---|
| {{ log.device_id }} | {% if log.user_name %} {% else %} Bilinmeyen Kullanıcı {% endif %} | {% if log.device_name %} {{ log.device_name }} {% else %} {{ log.device_id }} {% endif %} | {{ log.card_uuid or 'N/A' }} |
{% set access_types = {
1: ('NFC', 'access-nfc'),
2: ('BUTTON', 'access-button'),
3: ('TCP SERVER', 'access-tcpserver'),
4: ('TCP CLIENT', 'access-tcpclient'),
5: ('BLE', 'access-ble'),
6: ('RS485', 'access-rs485')
} %}
{% if log.access_type %}
{% set type_info = access_types.get(log.access_type|int, ('UNKNOWN', 'access-unknown')) %}
{% if log.access_type == 1 or log.access_type == '1' %}
{% else %}
{{ log.access_type or 'UNKNOWN' }}
{% endif %}
|
{% if log.is_granted %} {{ _('IZIN_VERILDI') or 'İzin Verildi' }} {% else %} {{ _('IZIN_VERILMEDI') or 'İzin Verilmedi' }} {% endif %} |
{{ _('no_device_logs') }}
{{ _('no_device_logs_description') }}