{% extends 'core/organisation_base.html' %}
{% load pagination_tags %}

{% block title %}{{ object.name }} People{% endblock %}

{% block subcontent %}

  <h2>Related People</h2>

  {% if historic %}
    <p>Showing historic positions (switch to <a href="?historic=">current positions</a>).</p>
  {% else %}
    <p>Showing current positions (switch to <a href="?historic=1">past positions</a>).</p>
  {% endif %}

  <div>

    <ul class="listing">
      {% autopaginate sorted_positions %}

      {# pombola/south_africa/templates/core/_position_listing.html #}
      {% include "core/_position_listing.html" with positions=sorted_positions %}

      {# pombola/south_africa/templates/core/_search_pagination_text.html #}
      {% include "core/_search_pagination_text.html" %}

      {% paginate %}
    </ul>
  </div>

{% endblock %}

{% extends 'core/organisation_base.html' %}
{% load pagination_tags %}

{% block title %}{{ object.name }} People{% endblock %}

{% block subcontent %}

  <h2>Members of {{ object.name }}</h2>

  <div class="filters">
    <h3>Show</h3>
    <p><a href="?historic=">Current members (x)</a></p>
    <p><a href="?historic=1">Past members (x)</a></p>
    <p><a href="?all=1">All members (x)</a></p>

    <h3>Sort by</h3>
    <p><a href="?sort=alphabetical">Alphabetical</a></p>
    <p><a href="?sort=party">Party</a></p>
    <p><a href="?sort=location">Location</a></p>
  </div>


  <div>

    <ul class="listing">
      {% autopaginate sorted_positions %}

      {# pombola/south_africa/templates/core/_position_listing.html #}
      {% include "core/_position_listing.html" with positions=sorted_positions %}

      {# pombola/south_africa/templates/core/_search_pagination_text.html #}
      {% include "core/_search_pagination_text.html" %}

      {% paginate %}
    </ul>
  </div>

{% endblock %}

Add filters and sorting to the org people template
Add filters and sorting to the org people template
