urls in customer_view page
This commit is contained in:
parent
d18d4326b3
commit
1b18e71518
@ -147,20 +147,20 @@
|
|||||||
<tbody class="list" id="customer-order-table-body">
|
<tbody class="list" id="customer-order-table-body">
|
||||||
{% for lead in leads %}
|
{% for lead in leads %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="#">{{lead}} ({{ forloop.counter }})<a></td>
|
<td><a href="{% url 'lead_detail' request.dealer.slug lead.slug%}">{{lead}} ({{ forloop.counter }})<a></td>
|
||||||
<td>{{lead.opportunity}} ({{ forloop.counter }})</td>
|
<td><a href="{$ url 'opportunity_detail' lead.opportunity.slug request.dealer.slug}">{{lead.opportunity}} ({{ forloop.counter }})</a></td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
{% for estimate in lead.customer.customer_model.estimatemodel_set.all %}
|
{% for estimate in lead.customer.customer_model.estimatemodel_set.all %}
|
||||||
<div class="me-2">{{estimate}}</div>
|
<div class="me-2"><a href="{% url 'estimate_detail' request.dealer.slug estimate.pk %}">{{estimate}}</a></div>
|
||||||
<hr>
|
<hr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{% for estimate in lead.customer.customer_model.estimatemodel_set.all %}
|
{% for estimate in lead.customer.customer_model.estimatemodel_set.all %}
|
||||||
<div>{{estimate.sale_orders.first}}</div>
|
<div><a href={% url 'order_detail' request.dealer.slug estimate.sale_orders.first.pk%}>{{estimate.sale_orders.first}}</a></div>
|
||||||
<hr>
|
<hr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
@ -169,11 +169,11 @@
|
|||||||
|
|
||||||
{% if invoice.is_paid %}
|
{% if invoice.is_paid %}
|
||||||
<span class="badge badge-phoenix fs-10 badge-phoenix-success">
|
<span class="badge badge-phoenix fs-10 badge-phoenix-success">
|
||||||
<div>{{invoice}}</div>
|
<div><a href="{% url 'invoice_detail' request.dealer.slug request.entity.slug invoice.pk %}">{{invoice}}</a></div>
|
||||||
</span>
|
</span>
|
||||||
{%else%}
|
{%else%}
|
||||||
<span class="badge badge-phoenix fs-10 badge-phoenix-info">
|
<span class="badge badge-phoenix fs-10 badge-phoenix-info">
|
||||||
<div>{{invoice}}</div>
|
<div><a href="{% url 'invoice_detail' request.dealer.slug request.entity.slug invoice.pk %}">{{invoice}}</a></div>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -182,7 +182,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% for estimate in lead.customer.customer_model.invoicemodel_set.all %}
|
{% for estimate in lead.customer.customer_model.invoicemodel_set.all %}
|
||||||
<div>{{estimate.itemtransactionmodel_set.first.item_model.name}}</div>
|
<div><a href="#">{{estimate.itemtransactionmodel_set.first.item_model.name}}</a></div>
|
||||||
<hr>
|
<hr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
align-items: center; /* Center content horizontally */
|
align-items: center; /* Center content horizontally */
|
||||||
}
|
}
|
||||||
.empty-state-image {
|
.empty-state-image {
|
||||||
max-width: 50%; /* Responsive image size */
|
max-width: 40%; /* Responsive image size */
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-radius: 10px; /* Rounded corners for image */
|
border-radius: 10px; /* Rounded corners for image */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user