{% extends base %} {% load form_extras %} {% load custom %} {% block content %}
{% csrf_token %} {% include "components/banners.html" %} {% if not read_only %}
{% include "components/field_text_short.html" with field=form|field:'name' %}
{% if grid %} {% for key, grid_table in tables.items %} {% if table == key %} {% endif %} {% endfor %} {% else %} {% endif %}
{% if grid_filters %}
{% endif %} {% include "components/field_text_area_short.html" with field=form|field:'filter_by' %} {% include "components/field_text_short.html" with field=form|field:'comment' %} {% include "components/field_check_short.html" with field=form|field:'group_by' %} {% include "components/field_check_short.html" with field=form|field:'distinct' %} {% include "components/field_check_short.html" with field=form|field:'show_on_home' %}
{% if action == 'update' %} {% include "components/table.html" with table=table_columns no_paginate=True %} {% endif %} {% include "components/grid_condition_group.html" %}
{% if condition_as_str %}
{{condition_as_str}}

{% endif %} {% endif %} {% if action == 'update' %} {% if read_only %}
{{grid.name}}
{% if grid.comment %}
{{grid.comment}}
{% endif %} {% endif %} {% include "components/grid.html" with columns=columns rows=rows fields=fields %} {% endif %}
{% endblock %}