{% load i18n %}
{% trans "Set access restrictions" as title_str %}
{% include "wagtailadmin/shared/header.html" with title=title_str %}

<div class="nice-padding">
    <form action="{% url 'wagtailadmin_pages_set_view_restrictions' page.id %}" method="POST">
        {% csrf_token %}
        <ul>
            <li>
                {# 'This page is viewable by all visitors' #}
                {{ form.restriction_type.0 }}
            </li>
            <li>
                {# 'This page is only viewable to users who enter this password:' #}
                {{ form.restriction_type.1 }}

                {# FIXME: need distinct CSS styling for the 'disabled' state #}
                {{ form.password }}
                {% if form.password.errors %}
                    <p class="error-message">
                        {% for error in form.password.errors %}
                            <span>{{ error }}</span>
                        {% endfor %}
                    </p>
                {% endif %}
            </li>
        </ul>
        <input type="submit" value="Set restriction">
    </form>
</div>

{% load i18n %}
{% trans "Set access restrictions" as title_str %}
{% include "wagtailadmin/shared/header.html" with title=title_str %}

<div class="nice-padding">
    <form action="{% url 'wagtailadmin_pages_set_view_restrictions' page.id %}" method="POST">
        {% csrf_token %}
        <ul>
            <li>
                {# 'This page is viewable by all visitors' #}
                {{ form.restriction_type.0 }}
            </li>
            <li>
                {# 'This page is only viewable to users who enter this password:' #}
                {{ form.restriction_type.1 }}

                {# FIXME: need distinct CSS styling for the 'disabled' state #}
                {{ form.password }}
                {% if form.password.errors %}
                    <p class="error-message">
                        {% for error in form.password.errors %}
                            <span>{{ error }}</span>
                        {% endfor %}
                    </p>
                {% endif %}
            </li>
        </ul>
        <input type="submit" value="Set restriction">
    </form>
    <p>{% trans "Access restrictions will take effect on this page and all child pages." %}</p>
</div>

Add note that access restrictions will take effect on child pages
Add note that access restrictions will take effect on child pages
