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