first commit
This commit is contained in:
parent
6eb4fddded
commit
6cf77729a6
@ -1558,7 +1558,7 @@ def decode_vin(vin):
|
||||
# VR3USHNLWRJ521303
|
||||
# KNARH81E8P5194005
|
||||
# Example usage
|
||||
vin_number = 'VR7BAHNL9SE001030'
|
||||
vin_number = 'LJD5AA1DXR0104257'
|
||||
decoded_vin = decode_vin(vin_number)
|
||||
print(decoded_vin)
|
||||
|
||||
|
||||
@ -23,15 +23,28 @@
|
||||
<div class="col-lg-6 col-xl-12">
|
||||
|
||||
|
||||
<div class="container m-1">
|
||||
<form method="get" >
|
||||
<div class="input-group input-group-sm">
|
||||
<button id="inputGroup-sizing-sm" class="btn btn-sm btn-secondary rounded-start" type="submit">{% trans 'search'|capfirst %}</button>
|
||||
<input type="text" name="q" class="form-control form-control-sm rounded-end" value="{{ request.GET.q }}" aria-describedby="inputGroup-sizing-sm"/>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="container-fluid p-2">
|
||||
<form method="get">
|
||||
<div class="input-group input-group-sm">
|
||||
<button id="inputGroup-sizing-sm"
|
||||
class="btn btn-sm btn-secondary rounded-start" type="submit">
|
||||
{% trans 'search'|capfirst %}
|
||||
</button>
|
||||
<input type="text"
|
||||
name="q"
|
||||
class="form-control form-control-sm rounded-end"
|
||||
value="{{ request.GET.q }}"
|
||||
aria-describedby="inputGroup-sizing-sm"/>
|
||||
<!-- Clear Button -->
|
||||
{% if request.GET.q %}
|
||||
<a href="{{request.META.HTTP_REFERER}}"
|
||||
class="btn btn-sm btn-outline-danger ms-1 rounded">
|
||||
<i class="bi bi-x-lg"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="table table-responsive table-sm align-middle">
|
||||
<thead>
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
data-bs-target="#collapse{{ make.make_id }}"
|
||||
aria-expanded="true"
|
||||
aria-controls="collapse{{ make.make_id }}">
|
||||
<small>{{ make.make_name }}: </small>
|
||||
{{ make.make_name }}:
|
||||
<strong>{{ make.total_cars }}</strong>
|
||||
</button>
|
||||
</p>
|
||||
@ -41,7 +41,7 @@
|
||||
<ul class="list-group">
|
||||
{% for model in make.models %}
|
||||
<li class="list-group-item">
|
||||
<small>{{ model.model_name }}: </small>
|
||||
{{ model.model_name }}:
|
||||
<strong>{{ model.total_cars }}</strong>
|
||||
<button class="btn btn-sm btn-link text-decoration-none"
|
||||
type="button"
|
||||
@ -49,7 +49,7 @@
|
||||
data-bs-target="#detailsModel{{ model.model_id }}"
|
||||
aria-expanded="false"
|
||||
aria-controls="detailsModel{{ model.model_id }}">
|
||||
<small>{% trans "Details" %}</small>
|
||||
{% trans "Details" %}
|
||||
</button>
|
||||
<div class="collapse mt-2" id="detailsModel{{ model.model_id }}">
|
||||
<p class="mt-2">{% trans "Trims" %}</p>
|
||||
@ -57,7 +57,7 @@
|
||||
{% for trim in model.trims %}
|
||||
<li>
|
||||
<a href="{% url 'car_inventory' make_id=make.make_id model_id=model.model_id trim_id=trim.trim_id %}">
|
||||
<small>{{ trim.trim_name }}</small>
|
||||
{{ trim.trim_name }}
|
||||
</a> - {% trans "Total" %}:
|
||||
<strong>{{ trim.total_cars }}</strong></li>
|
||||
{% empty %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user