{% extends "wagtailadmin/generic/edit.html" %}
{% load static %}

{% block before_form %}
    {% include "wagtailadmin/collections/_privacy_switch.html" with collection=object collection_perms=collection_perms only %}
{% endblock %}

{% block extra_js %}
    {{ block.super }}
    <script src="{% static 'wagtailadmin/js/modal-workflow.js' %}"></script>
    <script src="{% static 'wagtailadmin/js/privacy-switch.js' %}"></script>
{% endblock %}
