diff --git a/templates/inventory/car_detail.html b/templates/inventory/car_detail.html index 261dfcd9..f11021cb 100644 --- a/templates/inventory/car_detail.html +++ b/templates/inventory/car_detail.html @@ -1,4 +1,4 @@ - {% extends 'base.html' %} +{% extends 'base.html' %} {% load i18n static custom_filters %} {% block title %}{{ _("Car Details") }}{% endblock %} {% block customCSS %} @@ -17,14 +17,24 @@ {% endblock customCSS %} {% block content %} - {% if not car.ready %} + + {% if not car.ready and not car.status == 'sold' %}
- {{ _("This car information is not complete , please add colors and finances before making it ready for sale .") }}{{ _("Add Color") }} + {{ _("This car information is not complete , please add colors and finances both before making it ready for sale .") }}
+ {% elif car.finances and not car.colors %} ++ {{ _("This car information is not complete , please add colors before making it ready for sale .") }} +
+ {%else%} ++ {{ _("This car information is not complete , please add finances before making it ready for sale .") }} +
+ {%endif%}