{% extends 'sales/base.html' %} {% load static %} {% load thumbnail %} {% block breadcrumb %} {% block extralinks %} {% endblock extralinks %} {% endblock%} {% block content%}
OVERVIEW
{{ opportunity_record.name }}
{{ opportunity_record.account }}
{% if opportunity_record.contacts.all %}
{% for contact in opportunity_record.contacts.all %}
  • {{ contact }}
  • {% endfor %}
    {% endif %}
    {% if opportunity_record.amount %}
    {{ opportunity_record.currency }} {{ opportunity_record.amount }}
    {% endif %}
    {% if opportunity_record.stage %}
    {{ opportunity_record.stage }}
    {% endif %}
    {% if opportunity_record.lead_source %}
    {{ opportunity_record.lead_source }}
    {% endif %}
    {% if opportunity_record.probability %}
    {{opportunity_record.probability}} %
    {% endif %}
    {% if opportunity_record.closed_on %}
    {{opportunity_record.closed_on|date}}
    {% endif %}
    {% if opportunity_record.description %}
    {{opportunity_record.description}}
    {% endif %}
    {% if opportunity_record.tags.all %}
    {% endif %}
    Created by {{ opportunity_record.created_by }} created on {{ opportunity_record.created_on_arrow }}
    Attachments
    {% csrf_token %}

      {% for attachment in attachments %}
    • {% if request.user.is_superuser or request.user.role == 'ADMIN' or request.user == attachment.created_by %}
      {% endif %}
      {% if attachment.attachment %} {% if 'image' in attachment.file_type %} {% thumbnail attachment.attachment "80x80" crop="center" as im %} {% endthumbnail %} {% endif %} {% endif %}
        {{attachment.file_name}} Download
       Uploaded by : {{ attachment.created_by }}
      {{ attachment.created_on_arrow }}
    • {% endfor %}
    Comments
    {% csrf_token %}

      {% for comment in comments %}
    • {% if request.user.is_superuser or request.user.role == 'ADMIN' or request.user == comment.commented_by %}
      {% endif %}
      {{ comment.comment }}
      {{ comment.commented_by }}
      {{ comment.commented_on_arrow }}
    • {% endfor %}
    Processing File...
    {% endblock %} {% block js_block %} {% endblock js_block %}