{% include 'includes/toolbar.html' %}
{% include 'includes/lead_item_detail.html' %}
Associated Work Orders
{% if work_orders %}
{% for object in work_orders %}
{% include 'includes/detail_card_small.html' with url=object.get_absolute_url %}
{% endfor %}
{% else %}
There are no work orders associated with lead #{{ lead.id }}
{% endif %}
{% if perms.crm.add_workorder %}
{% url 'create-work-order' lead.id as create_work_order %} {% include 'includes/blue_buttons.html' with url=create_work_order text='+ Open New Work Order' %}
{% endif %}