{% extends "mongoadmin/base.html" %} {% block breadcrumbs %} {% endblock %} {% block content %} {% if document_id %}

Change document "{{ document_id }}"

{% else %}

Add new document

{% endif %}
{% csrf_token %}
{{ form.id }} {% if form.json.errors %}

{{ form.json.errors.0 }}

{% endif %} {{ form.json }}
{% if document_id %}
Delete
{% endif %} {# first button gets submitted when return is pressed #}
{% endblock %}