{% if query_fields|length > 2 %}
{% for field in query_fields %}
{% if loop.index > 2 %}
{% if field.html_type == 'select' or field.html_type == 'radio' or field.html_type == 'checkbox' %}
{% elseif field.html_type == 'date' %}
{% elseif field.html_type == 'datetime' %}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if query_fields|length > 2 %}
{% for field in query_fields %}
{% if loop.index <= 2 %}
{% if field.html_type == 'select' or field.html_type == 'radio' or field.html_type == 'checkbox' %}
{% elseif field.html_type == 'date' %}
{% elseif field.html_type == 'datetime' %}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% else %}
{% for field in query_fields %}
{% if field.html_type == 'select' or field.html_type == 'radio' or field.html_type == 'checkbox' %}
{% elseif field.html_type == 'date' %}
{% elseif field.html_type == 'datetime' %}
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% for field in list_fields %}
{% endfor %}
查看
编辑
删除