{% extends "admin/base.html" %} {% block title %}待办事项详情{% endblock %} {% block content %}

待办事项详情

待办事项信息
{% if todo.is_completed %}已完成{% else %}未完成{% endif %}
标题:
{{ todo.title }}
描述:
{{ todo.description or '无' }}
截止时间:
{% if todo.due_date %} {{ todo.due_date.strftime('%Y-%m-%d %H:%M') }} {% else %} 无 {% endif %}
创建时间:
{{ todo.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
更新时间:
{{ todo.updated_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% if todo.is_completed and todo.completed_at %}
完成时间:
{{ todo.completed_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% endif %}
设备信息
设备ID:
{{ device.device_id }}
设备名称:
{{ device.name or '未设置' }}
设备类型:
{{ device.device_type or '未知' }}
状态:
{% if device.status == 'online' %} 在线 {% else %} 离线 {% endif %}
最后活跃:
{% if device.last_seen %} {{ device.last_seen.strftime('%Y-%m-%d %H:%M:%S') }} {% else %} 未知 {% endif %}
{% endblock %}