{% extends 'sales/base.html' %} {% load static %} {% load paginate %} {% load thumbnail %} {% load cache %} {% block extralinks %} {% endblock %} {% block content %}
Filters
Clear
Open Leads - {% if show_pageitems %} {% show_pageitems %}{% else %} {{ open_leads|length }}{% endif %}
{% if open_leads|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page open_leads %} {% else %} {% paginate 10 open_leads %} {% endif %} {% for lead in open_leads %} {% endfor %}
ID Title Created By Source Status Assigned To Tags Country Created On Actions
{{ forloop.counter }} {{ lead.title }} {% if lead.created_by %} {% if lead.created_by.profile_pic %} {% thumbnail lead.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} Micro profile pic {% endif %} {% else %} None {% endif %} {{ lead.source }} {{ lead.get_status_display }} {% with lead_users=lead.get_team_and_assigned_users %} {% for user in lead_users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% empty %} None {% endfor %} {% endwith %}
{% with tags=lead.tags.all %} {% if tags %} {% for tag in tags %} {{ tag.name }} {% endfor %} {% else %} No Tags {% endif %} {% endwith %}
{{ lead.country }} {{ lead.created_on_arrow }} {% if request.user == lead.created_by or request.user.role == "ADMIN" or request.user.is_superuser %} {% endif %}
{%ifequal open_leads|length 0%}
No Open Lead Records Found
{%endifequal%}
{% show_pages %}
Closed Leads - {% if show_pageitems %} {% show_pageitems %}{% else %} {{ close_leads|length }}{% endif %}
{% if close_leads|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page close_leads %} {% else %} {% paginate 10 close_leads %} {% endif %} {% for lead in close_leads %} {% endfor %}
ID Title Source Status Assigned User Tags Country Created On Actions
{{ forloop.counter }} {{ lead.title }} {{ lead.source }} {{ lead.get_status_display }} {% with lead_users=lead.get_team_and_assigned_users %} {% for user in lead_users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% empty %} None {% endfor %} {% endwith %}
{% with tags=lead.tags.all %} {% if tags %} {% for tag in tags %} {{ tag.name }} {% endfor %} {% else %} No Tags {% endif %} {% endwith %}
{{ lead.country }} {{ lead.created_on_arrow }} {% if request.user == lead.created_by or request.user.is_superuser or request.user.role == 'ADMIN' %} {% endif %}
{%ifequal close_leads|length 0%}
No Closed Lead Records Found
{%endifequal%}
{% show_pages %}
{% for lead_record in open_leads %} {% endfor %} {% for lead_record in close_leads %} {% endfor %} {% endblock %} {% block js_block %} {% endblock js_block %}