{% 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 documents|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page documents %} {% else%} {% paginate 10 documents %} {% endif %} {% for document in documents %} {% endfor %}
S.No Title Created By Created On Status Shared To Actions
{{ forloop.counter }} {% if document.title %}{{ document.title }}{% endif %} {% if document.created_by %} {% if document.created_by.profile_pic %} {% thumbnail document.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% else %} None {% endif %} {{document.created_on_arrow}} {{document.status}} {% with document_users=document.shared_to.all %} {% for user in document_users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "40x40" 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 %}
{% ifequal documents|length 0 %}
No Documents Found
{% endifequal %}
{% show_pages %}

{% for doc_obj in documents %} {% endfor %} {% endblock %} {% block js_block %} {% endblock js_block %}