{% extends 'sales/base.html' %} {% load static %} {% load paginate %} {% load thumbnail %} {% block extralinks %} {% endblock %} {% block content %}
{% csrf_token %}
Filters
Clear
Documents - {% if show_pageitems %} {% show_pageitems %}{% else %} {{documents|length}}{% endif %}
{% if per_page %} {% paginate per_page documents %} {% else%} {% paginate 12 documents %} {% endif %} {% for document in documents %}
{% if document.title %}
{{ document.title }}
{% endif %}
{% if document.created_by %} {% if document.created_by.profile_pic %} {% thumbnail document.created_by.profile_pic "60x60" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% else %} {% endif %}
Created On: {{document.created_on_arrow}}
Status: {{document.status}}
Shared To: {% with document_users=document.get_team_and_assigned_users %} {% for user in document_users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "20x20" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% empty %} None {% endfor %} {% endwith %}
{% if request.user == document.created_by or request.user.role == 'ADMIN' or request.user.has_sales_access%} {% endif %} {% if request.user in document.shared_to.all or request.user == document.created_by or request.user.role == 'ADMIN' %} {% endif %}
{% endfor %}
{% ifequal documents|length 0 %}
No Documents Found
{% endifequal %}
{% show_pages %}
{% for doc_obj in documents %} {% endfor %} {% endblock %} {% block js_block %} {% endblock js_block %}