{# -*- mode:web -*- engine:django -*- #} {% extends dialogform_template %} {# See demo/views.py #} {% load static %} {% comment %} Dialogfrom DEMO app *note* model *change* dialog template. Extends 'dialog-content' blocks of the base template (dialog.html or page.html) {% endcomment %} {% block dialog-content %}

{% if object.pk %}Edit: {{ object }}{% else %}Add new {{ form.Meta.model }}{% endif %}

{{ block.super }} {% endblock %} {% block dialog-media %} {% if has_admin %} {# #} {% endif %} {{ block.super }} {% endblock %}