diff --git a/.DS_Store b/.DS_Store index 2569b8d7..42f33779 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/database_export.json b/database_export.json deleted file mode 100644 index 2a41bb1f..00000000 Binary files a/database_export.json and /dev/null differ diff --git a/static/.DS_Store b/static/.DS_Store index d14b0976..0f22e4c5 100644 Binary files a/static/.DS_Store and b/static/.DS_Store differ diff --git a/static/images/.DS_Store b/static/images/.DS_Store index 84f8b6ec..d9783fd7 100644 Binary files a/static/images/.DS_Store and b/static/images/.DS_Store differ diff --git a/static/images/car_make/Chevrolet_ZUJVQuH.png b/static/images/car_make/Chevrolet_ZUJVQuH.png index a0cd612e..c7c6c798 100644 Binary files a/static/images/car_make/Chevrolet_ZUJVQuH.png and b/static/images/car_make/Chevrolet_ZUJVQuH.png differ diff --git a/static/images/cars/.DS_Store b/static/images/cars/.DS_Store index 407618a1..537c8200 100644 Binary files a/static/images/cars/.DS_Store and b/static/images/cars/.DS_Store differ diff --git a/static/images/cars/1g6a85sx8k0144230.png b/static/images/cars/1g6a85sx8k0144230.png new file mode 100644 index 00000000..f27d5384 Binary files /dev/null and b/static/images/cars/1g6a85sx8k0144230.png differ diff --git a/static/images/cars/2G1F93D33C9198388.png b/static/images/cars/2G1F93D33C9198388.png new file mode 100644 index 00000000..f5f2e4a7 Binary files /dev/null and b/static/images/cars/2G1F93D33C9198388.png differ diff --git a/static/images/cars/3GCNY9EF5LG275234.png b/static/images/cars/3GCNY9EF5LG275234.png new file mode 100644 index 00000000..6ca9b1e5 Binary files /dev/null and b/static/images/cars/3GCNY9EF5LG275234.png differ diff --git a/static/images/cars/5LMCJ2D93NUL03460.png b/static/images/cars/5LMCJ2D93NUL03460.png new file mode 100644 index 00000000..b1ea45cf Binary files /dev/null and b/static/images/cars/5LMCJ2D93NUL03460.png differ diff --git a/static/images/cars/JN8AY2NY9E9073687.png b/static/images/cars/JN8AY2NY9E9073687.png new file mode 100644 index 00000000..7a71f306 Binary files /dev/null and b/static/images/cars/JN8AY2NY9E9073687.png differ diff --git a/static/images/cars/bus.png b/static/images/cars/bus.png deleted file mode 100644 index dc963fda..00000000 Binary files a/static/images/cars/bus.png and /dev/null differ diff --git a/static/images/cars/cabriolet.png b/static/images/cars/cabriolet.png deleted file mode 100644 index 37a8374e..00000000 Binary files a/static/images/cars/cabriolet.png and /dev/null differ diff --git a/static/images/cars/commercial.png b/static/images/cars/commercial.png deleted file mode 100644 index 1d1a0c48..00000000 Binary files a/static/images/cars/commercial.png and /dev/null differ diff --git a/static/images/cars/coupe.png b/static/images/cars/coupe.png deleted file mode 100644 index cf2d44d1..00000000 Binary files a/static/images/cars/coupe.png and /dev/null differ diff --git a/static/images/cars/crossover.png b/static/images/cars/crossover.png deleted file mode 100644 index 4596c87d..00000000 Binary files a/static/images/cars/crossover.png and /dev/null differ diff --git a/static/images/cars/double_pickup.png b/static/images/cars/double_pickup.png deleted file mode 100644 index 32ef5af4..00000000 Binary files a/static/images/cars/double_pickup.png and /dev/null differ diff --git a/static/images/cars/hatchback.png b/static/images/cars/hatchback.png deleted file mode 100644 index 1fb33a5c..00000000 Binary files a/static/images/cars/hatchback.png and /dev/null differ diff --git a/static/images/cars/minivan.png b/static/images/cars/minivan.png deleted file mode 100644 index b48a9c44..00000000 Binary files a/static/images/cars/minivan.png and /dev/null differ diff --git a/static/images/cars/sedan.png b/static/images/cars/sedan.png deleted file mode 100644 index 22242c4f..00000000 Binary files a/static/images/cars/sedan.png and /dev/null differ diff --git a/static/images/cars/single_pickup.png b/static/images/cars/single_pickup.png deleted file mode 100644 index c30fc028..00000000 Binary files a/static/images/cars/single_pickup.png and /dev/null differ diff --git a/static/images/cars/sport_car.png b/static/images/cars/sport_car.png deleted file mode 100644 index 588cb34c..00000000 Binary files a/static/images/cars/sport_car.png and /dev/null differ diff --git a/static/images/cars/suv.png b/static/images/cars/suv.png deleted file mode 100644 index d42e6d94..00000000 Binary files a/static/images/cars/suv.png and /dev/null differ diff --git a/static/images/cars/van.png b/static/images/cars/van.png deleted file mode 100644 index aee53afe..00000000 Binary files a/static/images/cars/van.png and /dev/null differ diff --git a/static/images/cars/van_cargo.png b/static/images/cars/van_cargo.png deleted file mode 100644 index 6a9d2749..00000000 Binary files a/static/images/cars/van_cargo.png and /dev/null differ diff --git a/templates/inventory/car_list_view.html b/templates/inventory/car_list_view.html index 883125f8..914b3209 100644 --- a/templates/inventory/car_list_view.html +++ b/templates/inventory/car_list_view.html @@ -1,349 +1,361 @@ {% extends "base.html" %} -{% load i18n custom_filters humanize %} +{% load static i18n custom_filters humanize %} {%block title%} {%trans 'Stocks'%} {%endblock%} + {% block customCSS %} - + {% endblock customCSS %} {% block content %} -
-
- -
- - - - - -
-
-
- {% csrf_token %} -
- - -
- -
-
-
-
- - - - - - - - - - - - - - - - - - {% for car in cars %} - - - - - - - - - - - - - - {% endfor %} - -
-
- -
-
{{ _("VIN") }}{{ _("Make") }}{{ _("Model") }}{{ _("Year") }}{{ _("Trim") }}{{ _("Color") }}{{ _("Date Received") }}{{ _("Status") }}{{ _("Inventory Ready") }}
-
- -
-
- {{ car.vin }} - - {% if car.id_car_make %} -

{{ car.id_car_make.get_local_name|default:car.id_car_make.name }}

- {% endif %} -
- {% if car.id_car_model %} -

{{ car.id_car_model.get_local_name|default:car.id_car_model.name }}

- {% endif %} -
-

{{ car.year }}

-
-

{{ car.id_car_trim }}

-
-
-
- {{ car.colors.exterior.get_local_name }} -
-
- {{ car.colors.interior.get_local_name }} -
-
-
-

{{ car.receiving_date|naturalday|capfirst }}

-
- {% if car.status == "available" %} - {{ _("Available") }} - {% elif car.status == "reserved" %} - {{ _("Reserved") }} - {% elif car.status == "sold" %} - {{ _("Sold") }} - {% elif car.status == "transfer" %} - {{ _("Transfer") }} - {% endif %} - - {% if not car.ready %} - {{ _("NO") }} - {%else%} - {{ _("YES") }} - {%endif%} - - -
-
-
-
- {% if is_paginated %} - {% include 'partials/pagination.html' %} - {% endif %} -
-
-
-
+
+
+
+ +
+
+
+ Loading... +
+
-{% endblock %} -{% block customJS %} - -{% endblock customJS %} + const cbox = document.querySelectorAll(".car-checkbox"); + cbox.forEach((checkbox) => { + checkbox.addEventListener("change", function () { + updateFormVisibility(); + }); + }); + + function updateFormVisibility() { + const form = document.querySelector(".update-price-form"); + const checkedCount = document.querySelectorAll(".car-checkbox:checked").length; + const submitButton = form.querySelector('button[type="submit"]'); + if (checkedCount > 0) { + form.classList.remove("d-none"); + submitButton.textContent = `Update Cost Price (${checkedCount})`; + } else { + form.classList.add("d-none"); + } + } + + {% endblock customJS %} +