{% block title %} {{ department.name }} {% endblock title %} {% block content %}

Supervisor: {{ department.supervisor.get_full_name|default:department.supervisor.username }}

{% for faxnumber in department.faxnumbers.all %}

{{ faxnumber.description }} {{ faxnumber.location }} — Fax Number: {{ faxnumber.phone }}

{% empty %}

No fax numbers listed for this department.

{% endfor %} {% if department.contacts.all|length > 0 %}
{% for contact in department.contacts.all|dictsort:"last_name" %}

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

Title: {{ contact.title }}

Extension: {{ contact.extension }}

Location: {{ contact.location }}

Phone: {{ contact.phone }}

{% endfor %}
{% else %}

No contacts listed.

{% endif %}
{% endblock content %}