{% extends "base.html" %} {% block content %}
{# display just the employees #} {% if employees|length > 1 %} {% for employee in employees %} {% endfor %}
Employees
ID Name Title Reports To
{{ employee.employee_id }} {{ employee.full_name}} {{ employee.title }} {% if employee.reports_to_id is none %} Top of org chart {% else %} {{ employee.reports_to.full_name }} {% endif %}
{# display the employee information #} {% else %} {% set employee = employees[0] %}
Employee

Name: {{ employee.full_name }}

Title: {{ employee.title }}

Hire Date: {{ employee.hire_date }}

Birth Date: {{ employee.birth_date }}

Address: {{ employee.address }}

City: {{ employee.city }}

State: {{ employee.state }}

Postal Code: {{ employee.postal_code }}

Phone: {{ employee.phone }}

Phone: {{ employee.fax }}

Email: {{ employee.email }}

{% if employee.reports_to_id is not none %}

Reports To:  {{ employee.reports_to.full_name }}

{% endif %}
{% endif %}
{% endblock %}