{% extends "base.html" %} {% load static from staticfiles %} {% load bootstrap %} {% block template_page_name %} - Search{% endblock %} {% block headers %} {% endblock %} {% block content %} {% if not query %}
{{ form|bootstrap }}
{% else %}

Search: "{{ query }}"


Filter


{% if not facets.fields %}
No applicable filters.

{% else %} {% if facets.fields.exact_user %}

By User

{% for datum in facets.fields.exact_user %} {% if datum.0 %} {{ datum.1}}{{ datum.0 }} {% endif %} {% endfor %}
{% endif %} {% if facets.fields.exact_manager %}

By Manager

{% for datum in facets.fields.exact_manager %} {% if datum.0 %} {{ datum.1}}{{ datum.0 }} {% endif %} {% endfor %}
{% endif %} {% if facets.fields.exact_location %}

By Location

{% for datum in facets.fields.exact_location %} {% if datum.0 %} {{ datum.1}}{{ datum.0 }} {% endif %} {% endfor %}
{% endif %} {% if facets.fields.exact_status %}

By Member Status

{% for datum in facets.fields.exact_status %} {% if datum.0 %} {{ datum.1}}{% if datum.0 = 'R' %}Resident{% elif datum.0 = 'B' %}Boarder{% elif datum.0 = 'A' %}Alumnus{% else %}Unknown Status{% endif %} {% endif %} {% endfor %}
{% endif %} {% endif %}
{% if not page.object_list %}
No results found.
{% else %}
{% for result in page.object_list %} {% if forloop.counter > 1 %}
{% endif %}
{% if result.object.is_userprofile %} {% include "search/userprofile.html" %} {% elif result.object.is_thread %} {% include "search/thread.html" %} {% elif result.object.is_message %} {% include "search/message.html" %} {% elif result.object.is_manager %} {% include "search/manager.html" %} {% elif result.object.is_request %} {% include "search/request.html" %} {% elif result.object.is_response %} {% include "search/response.html" %} {% elif result.object.is_announcement %} {% include "search/announcement.html" %} {% elif result.object.is_event %} {% include "search/event.html" %} {% elif result.object.is_semester %} {% include "search/semester.html" %} {% elif result.object.is_workshift_pool %} {% include "search/workshift_pool.html" %} {% elif result.object.is_workshift_type %} {% include "search/workshift_type.html" %} {% elif result.object.is_workshift_profile %} {% include "search/workshift_profile.html" %} {% elif result.object.is_regular_workshift %} {% include "search/regular_workshift.html" %} {% elif result.object.is_workshift_instance %} {% include "search/workshift_instance.html" %} {% endif %}
{% endfor %} {% if page.has_previous or page.has_next %}
{% if page.has_previous %}{% endif %} Previous{% if page.has_previous %}{% endif %} | {% if page.has_next %}{% endif %}Next {% if page.has_next %}{% endif %}
{% endif %}
{% endif %} {% endif %} {% endblock %}