{% extends "admin/formative/confirmation.html" %} {% load i18n %} {% block content_title %} {% trans 'Unpublish' %} {% endblock %} {% block cardtitle %} {% trans 'Unpublish' %} {{ object }} {% endblock %} {% block cardcontent %}

Are you sure you want to unpublish the form "{{ object }}"?

{% if submissions %}

It is NOT recommended to unpublish a form that has submissions.
Consider making the form hidden, instead.

Make sure you have saved an export of the submission data before proceeding.

All of the following related items will be deleted:   TODO: option to also delete files

{% endif %} {% endblock %} {% block rowcontent %}
{% if submissions %}

{% trans "Objects" %}

{% endif %}
    {% for rec in submissions %}
  1. Submission: {{ rec.0 }} {% if rec.1 %}
      {{ rec.1 }} items
    {% endif %}
  2. {% endfor %}
{% endblock %} {% block formcontrols %}
{% trans "No, take me back" %}
{% endblock %}