{% extends "analysis/base.html" %} {#{% load mytags %} #} {% block header %} {{ the_query.name }} {% endblock %} {% block content %} {% if request.allow_menu.查询管理 or request.allow_menu.清除缓存 or request.allow_menu.查询_编辑 or request.allow_menu.查询管理 %}
{% if request.allow_menu.查询管理 or request.allow_menu.清除缓存 or request.allow_menu.查询_编辑 or request.allow_menu.查询管理 %} 查询列表-> {% if request.allow_menu.查询权限 %} {% endif %} {% endif %} {{ the_query.name }} {% if request.allow_menu.清除缓存 %} 清除缓存 {% endif %} {% if request.allow_menu.查询_编辑 and the_query.id %} 编辑 {% endif %} {% if request.allow_menu.查询管理 and the_query.id %} 返回 {% endif %}
{% endif %}
{% for field in the_query.selects %} {% endfor %} {% for field in the_query.selects %} {% endfor %}
{{ field }}
{% include 'analysis/plugins/datatable.html' %} {% if plugin_templates %} {% for tpl in plugin_templates %} {% include tpl %} {% endfor %} {% endif %} {% if request.allow_menu.查询_导出 %} {% include 'analysis/plugins/export.html' %} {% endif %} {% endblock %}