{# <!-- table footer based paginator for ListView --> #}
<tfoot>
    <tr>
        <td colspan="2">{{ page_obj.paginator.count }} items in total</td>
        <td class="text-center">
            {% if page_obj.has_previous %}
            <a href="?page=1&per_page={{ page_obj.paginator.per_page }}">&laquo;</a>
            <a href="?page={{ page_obj.previous_page_number }}&per_page={{ page_obj.paginator.per_page }}">&lsaquo;</a>
            {% endif %}
            Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}
            {% if page_obj.has_next %}
            <a href="?page={{ page_obj.next_page_number }}&per_page={{ page_obj.paginator.per_page }}">&rsaquo;</a>
            <a href="?page={{ page_obj.paginator.num_pages }}&per_page={{ page_obj.paginator.per_page }}">&raquo;</a>
            {% endif %}
        </td>
        <td colspan="2" class="text-right">
            <form method="get">
                Showing
                <select name="{{ per_page_param }}">
                    {% for value in per_page_values %}
                    {% with page_obj.paginator.per_page as per_page %}
                    <option value="{{ value }}" {% if value == per_page  %}selected{% endif %}>{{ value }}</option>
                    {% endwith %}
                    {% endfor %}
                </select>
                per page
                <input type="submit" value="apply" />
            </form>
        </td>
    </tr>
</tfoot>
