{% extends "admin/change_form.html" %}
{% load i18n static cms_admin %}

{# Put the submit buttons INSIDE the form (Unfold’s are outside) #}
{% block after_related_objects %}
  {{ block.super }}
{% if add %}
    <div class="submit-row"{% if is_popup %} style="overflow: auto;"{% endif %}>
        <input type="submit" name="_save" class="default" value="{% trans 'Save' %}" {{ onclick_attrib }}/>
        <input type="submit" name="_continue" value="{% trans 'Save and continue editing' %}" {{ onclick_attrib }}/>
    </div>
{% else %}
    {% page_submit_row %}
{% endif %}
{% endblock %}

{# Keep it for now #}
{#{% if not is_popup %}#}
{#{% block submit_buttons_top %}{% page_submit_row %}{% endblock %}#}
{#{% block submit_buttons_bottom %}{% page_submit_row %}{% endblock %}#}
{#{% endif %}#}
