{% extends 'sales/base.html' %} {% load staticfiles %} {% load paginate %} {% load thumbnail %} {% block extralinks %} {% endblock %} {% block content %}
Filters
Clear
Tasks - {% if show_pageitems %} {% show_pageitems %}{% else %} {{tasks|length}}{% endif %}
{% if tasks|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page tasks %} {% else%} {% paginate 10 tasks %} {% endif %} {% for task in tasks %} {% if task.due_date %} {% if task.due_date < today and task.status != 'completed' %} {% if task.due_date %} {% else %} {% endif %} {% else %} {% if task.due_date %} {% else %} {% endif %} {% endif %} {% else %} {% if task.due_date %} {% else %} {% endif %} {% endif %} {% endfor %}
S.No Title Created By Status Priority Due Date Assigned To Actions
{{ forloop.counter }} {% if task.title %}{{ task.title }}{% endif %} {% if document.created_by.profile_pic %} {% thumbnail document.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {{task.status}} {{task.priority}}{{task.due_date}}-{% with users=task.assigned_to.all %} {% if users %} {% for user in users %} {{ user.email }}
{% endfor %} {% else %} None {% endif %} {% endwith %}
{% if request.user == task.created_by or request.user.role == 'ADMIN' %} {% endif %}
{{ forloop.counter }} {% if task.title %}{{ task.title }}{% endif %} {% if document.created_by.profile_pic %} {% thumbnail document.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {{task.status}} {{task.priority}}{{task.due_date}}-{% with users=task.assigned_to.all %} {% if users %} {% for user in users %} {{ user.email }}
{% endfor %} {% else %} None {% endif %} {% endwith %}
{% if request.user == task.created_by or request.user.role == 'ADMIN' %} {% endif %}
{{ forloop.counter }} {% if task.title %}{{ task.title }}{% endif %} {% if document.created_by.profile_pic %} {% thumbnail document.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {{task.status}} {{task.priority}}{{task.due_date}}-{% with users=task.assigned_to.all %} {% if users %} {% for user in users %} {{ user.email }}
{% endfor %} {% else %} None {% endif %} {% endwith %}
{% if request.user == task.created_by or request.user.role == 'ADMIN' %} {% endif %}
{% ifequal tasks|length 0 %}
No Tasks Found
{% endifequal %}
{% show_pages %}

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