{% extends 'base.html' %} {% load i18n static humanize %} {% block title %} {{ _("Leads") |capfirst }} {% endblock title %} {% block content %} {% if page_obj.object_list or request.GET.q %}
| {{ _("Lead Name") |capfirst }} |
|
|
{{ _("Phone Number") }}
|
|
|
|
{% comment %}
{{ _("Opportunity")|capfirst }}
| {% endcomment %}
{{ _("Action") }} | |
|---|---|---|---|---|---|---|---|---|---|
|
{{ lead.full_name|capfirst }}
{% if lead.status == "new" %}
{{ _("New") }}
{% elif lead.status == "pending" %}
{{ _("Pending") }}
{% elif lead.status == "in_progress" %}
{{ _("In Progress") }}
{% elif lead.status == "qualified" %}
{{ _("Qualified") }}
{% elif lead.status == "contacted" %}
{{ _("Contacted") }}
{% elif lead.status == "canceled" %}
{{ _("Canceled") }}
{% endif %}
|
{{ lead.id_car_make.get_local_name }} - {{ lead.id_car_model.get_local_name }} {{ lead.year }} | {{ lead.email }} | {{ lead.phone_number }} | {{ lead.next_action|upper }} | {{ lead.next_action_date|upper }} |
{% if lead.staff.logo %}
{% if lead.staff == request.staff %}
{{ _("Me") }}
{% elif LANGUAGE_CODE == "en" %}
{{ lead.staff.fullname|capfirst }}
{% else %}
{{ lead.staff.arabic_name }}
{% endif %}
|
{% if user == lead.staff.user or request.is_dealer %}
{% if perms.inventory.change_lead %}
{% trans "Edit" %}
{% endif %}
{% if perms.inventory.change_lead %}{% endif %}
{% if not lead.opportunity %}
{% if perms.inventory.add_opportunity %}
{% trans "Convert to Opportunity" %}
{% endif %}
{% endif %}
{% if perms.inventory.delete_lead %}
{% endif %}
|
||
| {% trans "No Leads found." %} | |||||||||