{% extends 'sales/base.html' %} {% load static %} {% load paginate %} {% load thumbnail %} {% block extralinks %} {% endblock %} {% block content %}
{% csrf_token %}
Filters
Clear
Open Accounts - {% if show_pageitems %} {% show_pageitems %}{% else %}{{open_accounts|length}}{% endif %}
{% if open_accounts|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page open_accounts %} {% else%} {% paginate 10 open_accounts %} {% endif %} {% for each_account in open_accounts %} {% endfor %}
ID Name Created By City State Created On Tags Actions
{{ forloop.counter }} {% if each_account.name %}{{ each_account.name }}{% endif %} {% if each_account.created_by %} {% if each_account.created_by.profile_pic %} {% thumbnail each_account.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} Micro profile pic {% endif %} {% else %} None {% endif %} {% if each_account.billing_city %}{{ each_account.billing_city }} {% else %} Not specified {% endif %} {% if each_account.billing_state %}{{ each_account.billing_state }} {% else %} Not specified {% endif %} {{ each_account.created_on_arrow }} {% with tags=each_account.tags.all %} {% if tags %} {% for tag in tags %} {{ tag.name }} {% endfor %} {% else %} No Tags {% endif %} {% endwith %} {% if each_account.contacts.all %} {% endif %}
{% ifequal open_accounts|length 0 %}
No Acccount Records Found
{% endifequal %}
{% show_pages %}
Closed Accounts - {% if show_pageitems %} {% show_pageitems %}{% else %}{{close_accounts|length}}{% endif %}
{% if close_accounts|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page close_accounts %} {% else%} {% paginate 10 close_accounts %} {% endif %} {% for each_account in close_accounts %} {% endfor %}
ID Name Created By City State Created On Tags Actions
{{ forloop.counter }} {% if each_account.name %}{{ each_account.name }}{% endif %} {% if each_account.created_by %} {% if each_account.created_by.profile_pic %} {% thumbnail each_account.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} Micro profile pic {% endif %} {% else %} None {% endif %} {% if each_account.billing_city %}{{ each_account.billing_city }} {% else %} Not specified {% endif %} {% if each_account.billing_state %}{{ each_account.billing_state }} {% else %} Not specified {% endif %} {{ each_account.created_on_arrow }} {% with tags=each_account.tags.all %} {% if tags %} {% for tag in tags %} {{ tag.name }} {% endfor %} {% else %} No Tags {% endif %} {% endwith %}
{% ifequal close_accounts|length 0 %}
No Closed Acccount Records Found
{% endifequal %}
{% show_pages %}

{% for account_record in open_accounts %} {% endfor %} {% for account_record in close_accounts %} {% endfor %} {% endblock %} {% block js_block %} {% endblock js_block %}