{% load i18n wagtailadmin_tags %}

<form action="{% url 'wagtailadmin_pages:set_privacy' page.id %}" method="POST" novalidate>
    {% csrf_token %}
    {% formattedfield field=form.restriction_type show_label=False %}
    {% if form.password is not None %}
        {% formattedfield form.password %}
    {% endif %}
    <div id="groups-fields">
        {% formattedfield form.groups %}
    </div>
    <input type="submit" value="{% trans "Save" %}" class="button" />
</form>
