{% extends 'sales/base.html' %} {% load static %} {% load paginate %} {% load thumbnail %} {% block extralinks %} {% endblock %} {% block content %}
{% csrf_token %}
Filters
Clear
Contacts - {% if show_pageitems %} {% show_pageitems %}{% else %} {{contact_obj_list|length}}{% endif %}
{% if contact_obj_list|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page contact_obj_list %} {% else%} {% paginate 10 contact_obj_list %} {% endif %} {% for contact in contact_obj_list %} {% endfor%}
S.no Name Assigned To City State Created On Actions
{{ forloop.counter }} {{contact.first_name}} {{contact.last_name}} {% with contact_users=contact.get_team_and_assigned_users %} {% for user in contact_users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% empty %} None {% endfor %} {% endwith %} {% if contact.address.city %} {{contact.address.city}} {% else %} Not Specified {% endif %} {% if contact.address.state %} {{contact.address.state}} {% else %} Not Specified {% endif %} {{contact.created_on_arrow}} {% if request.user == contact.created_by or request.user.role == "ADMIN" or request.user.is_superuser %} {% endif %}
{%ifequal contact_obj_list|length 0 %}
No Contact Records Found
{%endifequal%}
{% show_pages %}

{% for contact_record in contact_obj_list %} {% endfor %} {%endblock%} {% block js_block %} {% endblock js_block %}