{% extends "admin/base_site.html" %}

{% block content %}
<form action="" method="post">
  {% csrf_token %}
<p>
Choose a group for the following pages:
</p>
<ul>  
  {% for page in pages %}
    <li>
      {{ page.rel_path }}
    </li>
    <input type="hidden" name="_selected_action" value="{{ page.pk }}" />
  {% endfor %}
</ul>

  {{ form.as_p }}
  <input type="hidden" name="action" value="set_group" />
  <input type="submit" name="apply" value="Set"/>
</form>
{% endblock %}