{% extends 'admin/change_form.html' %} {% load static %} {% block admin_change_form_document_ready %} {{ block.super }} {% endblock %} {% block submit_buttons_bottom %} {% if add %}
{% elif not object_id %} {% comment %} There was a form validation error while trying to Add a Batch. The Batch has not been saved yet. Following the example from: django/contrib/admin/templates/admin/submit_line.html We add a "Delete" link that just reloads the page. {% endcomment %}
{% elif not published %} {% comment %} Requester reviewed the batch did did not publish so we show the review button {% endcomment %}
{% else %} {{ block.super }} {% endif %} {% endblock %}