estimate-form
This commit is contained in:
parent
43c8c8172d
commit
8fd698c6c5
@ -268,7 +268,7 @@
|
|||||||
<th>{% trans "Marked Price"|capfirst %}</th>
|
<th>{% trans "Marked Price"|capfirst %}</th>
|
||||||
<td>{{ car.finances.marked_price|floatformat:2 }}</td>
|
<td>{{ car.finances.marked_price|floatformat:2 }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
{% comment %} <tr>
|
||||||
<th>{% trans "Selling Price"|capfirst %}</th>
|
<th>{% trans "Selling Price"|capfirst %}</th>
|
||||||
<td>{{ car.finances.selling_price|floatformat:2 }}</td>
|
<td>{{ car.finances.selling_price|floatformat:2 }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -295,7 +295,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Total"|capfirst %}</th>
|
<th>{% trans "Total"|capfirst %}</th>
|
||||||
<td>{{ car.finances.total_vat|floatformat:2 }}</td>
|
<td>{{ car.finances.total_vat|floatformat:2 }}</td>
|
||||||
</tr>
|
</tr> {% endcomment %}
|
||||||
{% if perms.inventory.change_carfinance %}
|
{% if perms.inventory.change_carfinance %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
|
|||||||
@ -122,13 +122,13 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="row justify-content-center mt-5 mb-3">
|
<div class="row justify-content-center mt-5 mb-3">
|
||||||
<div class="row">
|
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="row ">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{% if not items %}
|
{% if not items %}
|
||||||
|
|
||||||
{% url "car_add" request.dealer.slug as create_car_url %}
|
{% url "car_add" request.dealer.slug as create_car_url %}
|
||||||
{% include "message-illustration.html" with value1="Please add at least one car before creating a quotation." value2="Add car" message_image="images/empty/no_car.png" url=create_car_url %}
|
{% include "message-illustration.html" with value1="Please add at least one car before creating a quotation." value2="Add car" message_image="images/empty/no_car.png" url=create_car_url %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -137,6 +137,7 @@
|
|||||||
{% include "message-illustration.html" with value1="Please add at least one customer before creating a quotation." value2="Add Customer" message_image="images/empty/no_estimate.png" url=create_customer_url %}
|
{% include "message-illustration.html" with value1="Please add at least one customer before creating a quotation." value2="Add Customer" message_image="images/empty/no_estimate.png" url=create_customer_url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="col-lg-8 col-md-10 needs-validation {% if not items or not customer_count %}d-none{% endif %}">
|
<div class="col-lg-8 col-md-10 needs-validation {% if not items or not customer_count %}d-none{% endif %}">
|
||||||
<div class="card shadow-sm border-0 rounded-3">
|
<div class="card shadow-sm border-0 rounded-3">
|
||||||
@ -146,10 +147,7 @@
|
|||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body bg-light-subtle">
|
<div class="card-body bg-light-subtle">
|
||||||
|
|
||||||
|
|
||||||
<form id="mainForm" method="post" class="needs-validation {% if not items and not customer_count %}d-none{% endif %}">
|
<form id="mainForm" method="post" class="needs-validation {% if not items and not customer_count %}d-none{% endif %}">
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="row g-3 col-12">
|
<div class="row g-3 col-12">
|
||||||
{{ form|crispy }}
|
{{ form|crispy }}
|
||||||
@ -182,7 +180,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<hr class="my-2">
|
<hr class="my-2">
|
||||||
<div class="d-grid gap-2 d-md-flex justify-content-md-center mt-3">
|
<div class="d-grid gap-2 d-md-flex justify-content-md-center mt-3">
|
||||||
@ -190,12 +187,11 @@
|
|||||||
<a href="{% url 'estimate_list' request.dealer.slug%}" class="btn btn-lg btn-phoenix-secondary"><i class="fa-solid fa-ban me-1"></i>{% trans "Cancel" %}</a>
|
<a href="{% url 'estimate_list' request.dealer.slug%}" class="btn btn-lg btn-phoenix-secondary"><i class="fa-solid fa-ban me-1"></i>{% trans "Cancel" %}</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block customJS %}
|
{% block customJS %}
|
||||||
@ -431,5 +427,4 @@ function handleFormResponse(data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user