{% extends "../template.html" %} {% block content %} {% load static %}

Opportunity Information

{{ opportunity_readonly_form.media }}

{{ opportunity_results.opportunity_name }}

{{ opportunity_readonly_form.opportunity_description }}

Opportunity Connections

{% if customer_connection_results %}
Customer Connections {% if opportunity_permission == 4 %} {% endif %} {% for row in customer_connection_results %} {% if opportunity_permission == 4 %} {% endif %} {% endfor %}
Customer First Name Customer Last Name Organisation
{{ row.customer_first_name }} {{ row.customer_last_name }} {{ row.organisation_id }} Delete
{% endif %} {% if organisation_connection_results %}
Organisation Connections {% if opportunity_permission == 4 %} {% endif %} {% for row in organisation_connection_results %} {% if opportunity_permission == 4 %} {% endif %} {% endfor %}
Organisation Name Organisation Website Organisation Email
{{ row.organisation_name }} {{ row.organisation_website }} {{ row.organisation_email }} Delete
{% endif %}
{% if to_do_results %}

To do

{% for row in to_do_results %} {% endfor %}
{{ row.to_do }}
{% endif %} {% if email_results and not email_permission == 0 %}

Email History

{% for row in email_results %} {% if email_permission > 1 %} {% else %} {% endif %} {% endfor %}
Subject Date Sent By
{{ row.email_subject }}{{ row.email_subject }}{{ row.date_created }} {{ row.change_user }}
{% endif %}

Opportunity Links

Assigned Requirements

{% if requirement_results %} {% for row in requirement_results %} {% endfor %}
Requirement ID Requirement Title Requirement Status
REQ{{ row.requirement_id }} {{ row.requirement_title }} {{ row.requirement_status }}
{% else %} There are no requirements connected. {% endif %}

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 %}

There are no associated projects. Please create a new project

{% 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 %}

There are no associated tasks. Please create a new task

{% endif %}

Tags

{% for tag in tag_results %} {{ tag.tag_name }} {% endfor %}

{% if quote_results %}

Opportunity Quotes

{% for row in quote_results %} {% endfor %}
Quote Title Valid Till Quote Stage
{{ row.quote_title }} {{ row.quote_valid_till }} {{ row.quote_stage_id }}
{% endif %} {% if opportunity_permission >= 3 %} {% if assigned_user_results %}

Assigned Users

{% for row in assigned_user_results %} {% endfor %}
Username First Name Last name
{{ row.assigned_user.username }} {{ row.assigned_user.first_name }} {{ row.assigned_user.last_name }}
{% endif %} {% if group_list_results %}

Assigned Groups

{% for row in group_list_results %} {% endfor %}
Assigned Group Name
{{ row.group_id }}
{% endif %} {% endif %} {% endblock %}