{% extends '../base.html' %} {% load static %} {% block title %}Title{% endblock title %} {% block meta %} {% endblock meta %} {% block css %} {% endblock css %} {% block js %} {% endblock js %} {% block breadcrumbs %} {% endblock %} {% block body %}
{% include 'includes/toolbar.html' %} {% include 'includes/lead_item_detail.html' %}
{% include 'includes/workorder_item_detail.html' %} {% if workorder.is_complete == False and workorder.is_canceled == False and workorder.reviewed == False %}
{% csrf_token %}
{% else %} {% if workorder.is_complete %} {% if workorder.reviewed %}
This work order has been marked as complete
{% else %}
This work order has been marked as complete and is pending review
{% if user.is_staff %}
{% csrf_token %}
{% endif %} {% endif %} {% elif workorder.is_canceled %} {% if workorder.reviewed %}
This work order has been marked as canceled
{% else %}
This work order has been marked as canceled and is pending review
{% if user.is_staff %}
{% csrf_token %}
{% endif %} {% endif %} {% endif %} {% endif %}

Assigned Technicians

{% if technicians %} {% for technician in technicians %}
{{ technician.technician }} {% if perms.crm.delete_workordertechnicians %} Remove {% endif %}
{% endfor %} {% else %}
There are no technicians assigned to this work order
{% endif %} {% if perms.crm.add_workordertechnicians %}
+ Add A Technician
{% endif %}

Associated Images

{% if images.count == 0 %}
There are no images associated with this work order
{% elif images.count == 1 %}
There is {{ images.count }} image associated with this work order
{% else %}
There are {{ images.count }} images associated with this work order
{% endif %} {% if perms.crm.add_workorderimages %}
+ Add An Image
{% endif %}
{% for image in images %}
{% if perms.crm.delete_workorderimages %} Remove {% endif %}
{% endfor %}
{% endblock body %} {% block footer_js %} {% endblock footer_js %}