{% extends "base.html" %} {% block title %} Search Results {% endblock title %} {% block content %} {% if contacts %}
{% for contact in contacts %}

{{ contact.first_name }} {{ contact.last_name }}

Title: {{ contact.title }}

Extension: {{ contact.extension }}

Location: {{ contact.location }}

Phone: {{ contact.phone }}

Department: {{ contact.department.name }}

{% endfor %}
{% if is_paginated %}
{% if page_obj.has_previous %} {% else %} {% endif %} {% if page_obj.has_next %} {% else %} {% endif %}
{% endif %} {% else %}

No results.

{% endif %} {% endblock content %}