From 8fd698c6c51c59338e05101bc532582480dd89ca Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Tue, 29 Jul 2025 16:43:25 +0300 Subject: [PATCH] estimate-form --- templates/inventory/car_detail.html | 4 +- templates/sales/estimates/estimate_form.html | 137 +++++++++---------- 2 files changed, 68 insertions(+), 73 deletions(-) diff --git a/templates/inventory/car_detail.html b/templates/inventory/car_detail.html index d4e16fe1..12fbdab3 100644 --- a/templates/inventory/car_detail.html +++ b/templates/inventory/car_detail.html @@ -268,7 +268,7 @@ {% trans "Marked Price"|capfirst %} {{ car.finances.marked_price|floatformat:2 }} - + {% comment %} {% trans "Selling Price"|capfirst %} {{ car.finances.selling_price|floatformat:2 }} @@ -295,7 +295,7 @@ {% trans "Total"|capfirst %} {{ car.finances.total_vat|floatformat:2 }} - + {% endcomment %} {% if perms.inventory.change_carfinance %} diff --git a/templates/sales/estimates/estimate_form.html b/templates/sales/estimates/estimate_form.html index 08475b18..1cd476d1 100644 --- a/templates/sales/estimates/estimate_form.html +++ b/templates/sales/estimates/estimate_form.html @@ -122,81 +122,77 @@ }
-
-
- {% if not items %} - - {% 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 %} - - {% endif %} -
-
- {% if not customer_count %} - {% url "customer_create" request.dealer.slug as 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 %} -
-
-
-
-
-

- {% trans "Create Quotation" %} -

-
-
- - -
- - {% csrf_token %} -
- {{ form|crispy }} -
- - - - -
-
- Select a car -
- + +
+
+
+ {% if not items %} + {% 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 %} + {% endif %}
- -
- {% for item in items %} -
- {{item.model}} - {{item.make}} {{item.model}} {{item.serie}} {{item.trim}} {{item.color_name}} -
-
- ({{item.hash_count}} in stock) -
- {% endfor %} +
+ {% if not customer_count %} + {% url "customer_create" request.dealer.slug as 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 %}
+
+
+
+
+

+ {% trans "Create Quotation" %} +

+
+
+ + {% csrf_token %} +
+ {{ form|crispy }} +
+ + -
-
-
- - {% trans "Cancel" %} -
- + +
+
+ Select a car +
+ +
-
+
+ {% for item in items %} +
+ {{item.model}} + {{item.make}} {{item.model}} {{item.serie}} {{item.trim}} {{item.color_name}} +
+
+ ({{item.hash_count}} in stock) +
+ {% endfor %} +
+
+
+
+
+ + {% trans "Cancel" %} +
+ +
+
+
+
- -
- -
+
{% endblock %} {% block customJS %} - {% endblock %} - +{% endblock %} -- 2.39.5