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

待办事项管理 {% if filtered %} - {{ device.name or device.device_id }} {% endif %}

{% if not filtered %}
{% endif %}
{% if filtered %} {% endif %}
{% if filtered %} {% if todos %}
待办事项列表
{% for todo in todos %} {% endfor %}
标题 描述 截止时间 状态 创建时间 操作
{{ todo.title }} {{ todo.description or '-' }} {% if todo.due_date %} {{ todo.due_date.strftime('%Y-%m-%d %H:%M') }} {% else %} - {% endif %} {% if todo.is_completed %} 已完成 {% if todo.completed_at %} {{ todo.completed_at.strftime('%Y-%m-%d %H:%M') }} {% endif %} {% else %} 未完成 {% endif %} {{ todo.created_at.strftime('%Y-%m-%d %H:%M') }}
{% else %}
该设备暂无待办事项

点击上方按钮添加第一个待办事项

添加待办事项
{% endif %} {% else %} {% if todo_list %}
所有待办事项
{% for item in todo_list %} {% endfor %}
标题 设备 描述 截止时间 状态 创建时间 操作
{{ item.todo.title }} {{ item.device.name or item.device.device_id }} {{ item.todo.description or '-' }} {% if item.todo.due_date %} {{ item.todo.due_date.strftime('%Y-%m-%d %H:%M') }} {% else %} - {% endif %} {% if item.todo.is_completed %} 已完成 {% if item.todo.completed_at %} {{ item.todo.completed_at.strftime('%Y-%m-%d %H:%M') }} {% endif %} {% else %} 未完成 {% endif %} {{ item.todo.created_at.strftime('%Y-%m-%d %H:%M') }}
{% else %}
暂无待办事项

点击上方按钮添加第一个待办事项

添加待办事项
{% endif %} {% endif %}
{% endblock %}