{% extends 'sales/base.html' %} {% load static %} {% block breadcrumb %} {% load thumbnail %} {% endblock breadcrumb %} {% block content %}
Overview
{% if user_obj.first_name %}
{% endif %} {% if user_obj.last_name %}
{% endif %} {% if user_obj.email %}
{% endif %} {% if user_obj.username %}
{% endif %} {% if user_obj.role %}
{% endif %}
{% if user_obj.profile_pic %} {% thumbnail user_obj.profile_pic "125x125" as im %} {% endthumbnail %} {% else %} {% endif %}
{% with teams=user_obj.user_teams.all %} {% if teams %}
{% for team in teams %} {% endfor %}
{% endif %} {% endwith %}

Comments
{% csrf_token %}

    {% for comment in comments %}
  • {% if request.user.is_superuser or request.user.role == 'ADMIN' or request.user == comment.commented_by %}
    {% endif %}
    {{ comment.comment }}
    {{ comment.commented_by }}
    {{ comment.commented_on|date:'m/d/Y,  h:i:s A' }}
  • {% endfor %}
{% csrf_token %}
Accounts
{% if accounts|length > 0 %} {% endif %} {% for account in accounts %} {% endfor %}
S.No Account Name Phone Email
{{ forloop.counter }} {{ account.name }} {{ account.phone }} {{ account.email }}
{% ifequal accounts|length 0 %}
No Account Records Found
{% endifequal %}

Contacts
{% if contacts|length > 0 %} {% endif %} {% for contact in contacts %} {% endfor %}
S.No Contact Name Phone Email
{{ forloop.counter }} {{ contact.first_name }} {{ contact.last_name }} {{ contact.phone }} {{ contact.email }}
{% ifequal contacts|length 0 %}
No Contact Records Found
{% endifequal %}

Opportunities
{% if opportunity_list|length > 0 %} {% endif %} {% for opportunity in opportunity_list %} {% endfor %}
S.No Name Stage Probability
{{ forloop.counter }} {{opportunity.name}} {{opportunity.stage}} {{opportunity.probability}} {% if opportunity.probability %} % {% endif %}
`{% ifequal opportunity_list|length 0 %}
No Opportunity Records Found
{% endifequal %}

Cases
{% if cases|length > 0 %} {% endif %} {% for case in cases %} {% endfor %}
S.No Name Status Priority
{{ forloop.counter }} {{ case.name }} {{ case.status }} {{ case.priority }}
{% ifequal cases|length 0 %}
No Case Records Found
{% endifequal %}

{% endblock content %} {% block js_block %} {% endblock js_block %}