{% include "navbar.html" %} {% block options %}
{{ form.csrf_token }}
{{ form.USER_ID(class_="form-control typeahead", placeholder="Enter LDAP user name", size=40) }}
{% if form["USER_ID"].data %}
{{ form.FILE_SEARCH(class_="form-control", placeholder="File Search", size=28) }}
{% endif %}
{% with messages = get_flashed_messages() %} {% if messages %}
    {% for message in messages %}

    {{ message }}

    {% endfor %}
{% endif %} {% endwith %}
{{ form.csrf_token }}
{% if user_info %}
Name:
{{ user_info[ldap_fields['full_name']] }}
Role:
{{ user_info[ldap_fields['title']] }}
Team:
{{ user_info[ldap_fields['department']] }}
Org:
{{ user_info[ldap_fields['org_role']] }}
Location:
{{ user_info[ldap_fields['office']] }}
Start date:
{{ user_info[ldap_fields['start_date']] }}
LDAP UID:
{{ user_info[ldap_fields['uid_number']] }}
LDAP groups:
{% for group in user_info[ldap_fields['member_of']] %}{{ group }} {% endfor %}
Status:
{% if user_info['suspended'] %} INACTIVE {% else %} ACTIVE {% endif %}
{% if user_info[ldap_fields['photo_url']] %}
{% endif %}

{% if files %}

Select the file(s) you want to transfer to a new owner

{% for file in files %} {% endfor %}
Select Name Type
{{ file["name"] }} {{ file["mimeType"] }} {% if file["chown"] %} {% if file["chown"] == "False" %} FAILED {% else %} SUCCESS {% endif %} {% endif %}
Select ALL files.
{{ form.NEW_OWNER(class_="form-control typeahead", placeholder="New owner", size=20) }}
Select new owner, then hit Submit to transfer file ownerships.
{% endif %} {% if files|length == 0 and form["FILE_SEARCH"].data %}
No files were found matching your query.
{% endif %} {% endif %}
{% endblock %}