{% extends "memberships/base-wide.html" %}
{% load humanize %}
{% load pagination_tags %}
{% load membership_tags %}
{% load base_tags %}
{% load base_filters %}
{% load perm_tags %}
{% load i18n %}

{% block title %}Membership Entry Search{% endblock %}
{% block meta_description %}{{ block.super }}{% endblock %}
{% block meta_keywords %}{{ block.super }}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/memberships.css">
{% endblock %}

{% block body %}
<div class="t">
    {% membership_nav request.user %}

    <h1>{% trans "Membership Entry Search" %}</h1>

	{% entry_search %}

    {% autopaginate entries 10 %}

	<div class="memberships-wrap">

    {% for entry in entries %}
		{% with entry|get_object as entry %}
		{% include 'memberships/entries/search-result.html' %}
		{% endwith %}
	{% empty %}
		<div>{% trans "0 Results Found" %}</div>
    {% endfor %}
	</div>

    <div class="membership-side-panel">

        <div class="application-set">
            <div>{% trans "Applications" %}</div>
            <ul>
                {% for app in apps %}
                <li><a href="?q=application:{{ app.name|lower }}">{{ app.name }}</a></li>
                {% endfor %}
            </ul>
        </div>
        <div class="type-set">
            <div>{% trans "Membership Types" %}</div>
            <ul>
                {% for type in types %}
                <li><a href="?q=type:{{ type.name|lower }}">{{ type.name }}</a></li>
                {% endfor %}
            </ul>
        </div>

        <div class="entry-status">
            <div>Status</div>
            <ul>
                <li><a href="?status=pending">{% trans "Pending" %}</a></li>
                <li><a href="?status=approved">{% trans "Approved" %}</a></li>
                <li><a href="?status=disapproved">{% trans "Disapproved" %}</a></li>
            </ul>
        </div>

    </div>

    <div style="clear:both;"></div>
    {% paginate %}
</div>
{% endblock %}