{% extends 'base.html' %} {% load static tags %} {% block content %} {% include 'breadcrumb.html' %} {% csrf_token %} {% for filter in filters %} {% if filter.type == 'text' %} {{ filter.label }} {% elif filter.type == 'select' %} {{ filter.label }} 请选择 {% for option in filter.options %} {{ option.display }} {% endfor %} {% elif filter.type == 'date' %} {{ filter.label }} {% elif filter.type == 'month' %} {{ filter.label }} {% endif %} {% endfor %} 查询 {% render_button 'modify_records_button' %} {% render_button 'add_button' %} {% render_button 'report_excel_button' %} {# {% render_button 'import_excel_button' %}#} 上传Excel(测试) {% get_verbose_field_names_from_model model_config table_exclude_field_name as columns %} {% for column in columns %} {{ column }} {% endfor %} 操作 {% for item in items %} {% for field in item|get_fields:table_exclude_field_name %} {{ field.value }} {% endfor %} 编辑 删除 {% empty %} 暂无数据 {% endfor %} {% include 'pagination_ps.html' with page_obj=items query_params=query_params %}
此操作会删除当前数据,是否继续?