{% extends "sales/base.html" %} {% load static %} {% load paginate %} {% load thumbnail %} {% block extralinks %} {% endblock %} {% block content %}
{% csrf_token %}
Filters
Clear
Opportunities - {% if show_pageitems %} {% show_pageitems %}{% else %} {{ opportunity_list|length }}{% endif %}
{% if opportunity_list|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page opportunity_list %} {% else %} {% paginate 10 opportunity_list %} {% endif %} {% for opportunity in opportunity_list %} {% endfor %}
S.No Name Assigned To Tags Account Stage Created On Lead Source Actions
{{ forloop.counter }} {{ opportunity.name }} {% with opportunity_users=opportunity.get_team_and_assigned_users %} {% for user in opportunity_users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% empty %} None {% endfor %} {% endwith %} {% with tags=opportunity.tags.all %} {% if tags %} {% for tag in tags %} {{ tag.name }} {% endfor %} {% else %} No Tags {% endif %} {% endwith %} {% if opportunity.account %} {{ opportunity.account }} {% else %} No Related Account {% endif %} {% if opportunity.stage %}{{ opportunity.stage }}{% else %}Not Specified {% endif %} {{opportunity.created_on_arrow}} {% if opportunity.lead_source %}{{ opportunity.lead_source }}{% else %}Not Specified{% endif %} {% if request.user == opportunity.created_by or request.user.role == "ADMIN" or request.user.is_superuser %} {% endif %}
{% ifequal opportunity_list|length 0 %}
No Opportunity Records Found
{% endifequal %}
{% show_pages %}

{% for opportunity_record in opportunity_list %} {% endfor %} {% endblock %} {% block js_block %} {% endblock js_block %}