{% load static %} {% include 'dashboard/visitors_dashboard/header.html' %} {% include 'dashboard/visitors_dashboard/body.html' %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %}

Profile Edit Control panel

{% csrf_token %}
{% if visitors_user.image %} Visitor Image {% else %} Default Image {% endif %}


{% if visitors_user.document %} {% with file_extension=visitors_user.document.name|slice:'-4:' %} {% if file_extension == '.pdf' %}

Uploaded Document: {{ visitors_user.document.name }}

{% elif file_extension in '.jpg .png .jpeg' %}

Uploaded Image: Uploaded Image
{{ visitors_user.document.name }}

{% else %}

Uploaded Document: {{ visitors_user.document.name }}

{% endif %} {% endwith %} {% else %}

No document uploaded.

{% endif %}
{% include 'dashboard/visitors_dashboard/footer.html' %}