{% extends 'NearBeach/template.html' %} {% block content %} {% load humanize %} {% load static %}

{{ organisation_results.organisation_name }}

{{ organisation_readonly_form.media }} {% if profile_picture %}
{% else %}
{% endif %}
{{ organisation_readonly_form.organisation_name }}
{{ organisation_readonly_form.organisation_website }}
{% if campus_results %}

Organisation Campus'

{% for campus in campus_results %} {% endfor %}
Campus Nickname Campus Location Campus Address
{{ campus.campus_nickname }} {{ campus.campus_country_id }} - {{ campus.campus_region_id }} {{ campus.campus_address1 }}
{{ campus.campus_address2 }}
{{ campus.campus_address3 }}{{ campus.campus_suburb }}
{% endif %} {% if customer_results %}

Organisation Contacts

{% for customer in customer_results %} {% endfor %}
Name Email
{{ customer.customer_first_name }} {{ customer.customer_last_name }} {{ customer.customer_email }}
{% endif %} {% if contact_history_collective %}

Customer History

{% for row in contact_history_collective %}
{{ row.submit_history }}
{{ row.contact_history }}
{% endfor %}
{% endif %} {% if email_results %}

Email History

{% for row in email_results %} {% endfor %}
Subject Date Sent By
{{ row.email_subject }} {{ row.date_created }} {{ row.change_user }}
{% endif %} {% if quote_results %}

Organisation Quotes

{% if quote_results %} {% for row in quote_results %} {% endfor %}
Quote Title Valid Till Quote Stage
{{ row.quote_title }} {{ row.quote_valid_till }} {{ row.quote_stage_id }}
{% endif %}
{% endif %}

Associated Projects & Tasks

Assigned Projects

{% if project_results %} {% for row in project_results %} {% endfor %}
Project ID Project Name Project End Date Project Status
PRO{{ row.project_id }} {{ row.project_name }} {{ row.project_end_date }} {{ row.project_status }}
{% else %}

Sorry. There are currently no projects for this customer

{% endif %}

Assigned Tasks

{% if task_results %} {% for row in task_results %} {% endfor %}
Task ID Task Name Task End Date Task Status
TASK{{ row.task_id }} {{ row.task_short_description }} {{ row.task_end_date }} {{ row.task_status }}
{% else %}

Sorry. There are currently no tasks for this customer.

{% endif %}
{% if opportunity_results %}

Organisation Opportunities

{% for row in opportunity_results %} {% if row.customer_id.customer_id %} {% else %} {% endif %} {% endfor %}
Opportunity Name Customer Opportunity Stage Opportunity End Date
{{ row.opportunity_name }} {{ row.customer_id }} - {{ row.opportunity_stage_id }} {{ row.opportunity_expected_close_date }}
{% endif %} {% endblock %}