Created
March 24, 2022 10:53
-
-
Save DanyF-github/72eddb0d7c94b67810144903ccae8a80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} | |
{% load static %} | |
{% block content %} | |
<a href="{% url 'agent:agent_dashboard' %}">Go to dashboard</a> | |
<h4>List of leads</h4> | |
<ul> | |
{% for lead in leads %} | |
<li class="list"> | |
<div class="link-group"> | |
<div style="width: 100px;"> | |
{{lead.first_name}} ({{lead.id}}) | |
</div> | |
<a href="{% url 'lead_manager:lead_update' lead.id %}">Update</a> | |
<a href="{% url 'lead_manager:lead_delete' lead.id %}"> Delete</a> | |
{% if not lead.has_agent %} | <span style="color: red;">Not Assigned</span> {% endif %} | |
</div> | |
</li> | |
{% empty %} | |
<p>Lead list is empty</p> | |
{% endfor %} | |
</ul> | |
<div class="create_lead_link"> | |
<a href="{% url 'lead_manager:lead_create' %}">Create new lead</a> | |
</div> | |
{% endblock content %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment