{% extends 'sales/base.html' %} {% load static %} {% load paginate %} {% load thumbnail %} {% block extralinks %} {% endblock %} {% block content %}
{% csrf_token %}
Filters
Clear
Events - {% if show_pageitems %} {% show_pageitems %}{% else %} {{ events|length }}{% endif %}
{% if events|length > 0 %} {% endif %} {% if per_page %} {% paginate per_page events %} {% else %} {% paginate 10 events %} {% endif %} {% for event in events %} {% endfor %}
ID Name Contacts Assigned To Start Date Date of Meeting End Date Created On Created by Actions
{{ forloop.counter }} {{ event.name }} {% with contacts=event.contacts.all %} {% if contacts %} {% for contact in contacts %} {% empty %} None {% endfor %} {% else %}
None
{% endif %} {% endwith %}
{% with users=event.get_team_and_assigned_users %} {% for user in users %} {% if user.profile_pic %} {% thumbnail user.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} {% endif %} {% empty %} None {% endfor %} {% endwith %} {{ event.start_date }} {{ event.date_of_meeting }} {{ event.end_date }} {{ event.created_on_arrow }} {% if event.created_by %} {% if event.created_by.profile_pic %} {% thumbnail event.created_by.profile_pic "40x40" crop="center" as im %} {% endthumbnail %} {% else %} Micro profile pic {% endif %} {% else %} None {% endif %} {% if request.user == event.created_by or request.user.role == 'ADMIN' or request.user.has_sales_access %} {% endif %}
{% ifequal events|length 0 %}
No Events Found
{% endifequal %}
{% show_pages %}
{% for event in events %} {% endfor %} {% endblock %} {% block js_block %} {% endblock js_block %}