{% extends "layouts/content.html" %} {% load static %} {% block styles %} {% endblock %} {% block content %} {% if form.instance.id %}

Edit query “{{ form.instance.name }}”…

{% elif is_copy %}

Copy query “{{ query_name }}”…

{% else %}

Add new query…

{% endif %} {% block content_form %}
{% csrf_token %} {% if form.errors %}
{{ form.non_field_errors }}
    {% for field in form %} {% if field.errors %}
  • {{ field.label }}: {{ field.errors|striptags }}
  • {% endif %} {% endfor %}
{% endif %}
{{ form.name.label_tag }} {{ form.name }} {{ form.owner }}
{{ form.content_type.label_tag }} {% if form.content_type.value %} {{ form.content_type.as_hidden }} {{ form.instance.content_type.name }} {% else %} {{ form.content_type }} {% endif %}
{{ form.is_live.label_tag }} {{ form.is_live }}   
{{ form.limit.label_tag }} {{ form.limit }}
{{ form.description.label_tag }} {{ form.description }}
{% endblock content_form %} {% endblock %}