update
This commit is contained in:
parent
c4ea8db46e
commit
315589b669
BIN
inventory/.DS_Store
vendored
BIN
inventory/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1614,14 +1614,14 @@ def decode_vds(manufacturer, vds):
|
|||||||
},
|
},
|
||||||
|
|
||||||
'Dongfeng': {
|
'Dongfeng': {
|
||||||
1: { # First character
|
1: {
|
||||||
'A': 'A-Series',
|
'A': 'A-Series',
|
||||||
'B': 'SHINE', # SHINE model
|
'B': 'SHINE',
|
||||||
'C': 'C-Series', # General C-Series
|
'C': 'C-Series',
|
||||||
'D': 'MAGE', # MAGE model
|
'D': 'MAGE',
|
||||||
'E': ['CAPTAIN E', 'E32'], # CAPTAIN and E-Series models
|
'E': ['CAPTAIN E', 'E32'],
|
||||||
'F': 'CAPTAIN C', # CAPTAIN C model
|
'F': 'CAPTAIN C',
|
||||||
'G': 'S50', # S50 model
|
'G': 'S50',
|
||||||
'H': 'Dongfeng Fengshen AX3',
|
'H': 'Dongfeng Fengshen AX3',
|
||||||
'J': 'Dongfeng Joyear SUV',
|
'J': 'Dongfeng Joyear SUV',
|
||||||
'K': 'Dongfeng Rich 6',
|
'K': 'Dongfeng Rich 6',
|
||||||
@ -1629,7 +1629,7 @@ def decode_vds(manufacturer, vds):
|
|||||||
'M': 'Dongfeng Glory 580',
|
'M': 'Dongfeng Glory 580',
|
||||||
},
|
},
|
||||||
|
|
||||||
2: { # Second character (for C-Series)
|
2: {
|
||||||
'3': 'C35', # Specific models in C-Series
|
'3': 'C35', # Specific models in C-Series
|
||||||
'1': 'C31',
|
'1': 'C31',
|
||||||
'2': 'C32',
|
'2': 'C32',
|
||||||
|
|||||||
@ -209,26 +209,23 @@ def dealer_signup(request, *args, **kwargs):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# class Login(allauth_views.LoginView):
|
# class OTPView(View, LoginRequiredMixin):
|
||||||
# template_name = "account/login.html"
|
# template_name = "account/otp_verification.html"
|
||||||
# redirect_authenticated_user = True
|
#
|
||||||
class OTPView(View, LoginRequiredMixin):
|
# def get(self, request, *args, **kwargs):
|
||||||
template_name = "account/otp_verification.html"
|
# # device = default_device(request.user)
|
||||||
|
# # device.generate_challenge()
|
||||||
def get(self, request, *args, **kwargs):
|
# return render(request, self.template_name)
|
||||||
# device = default_device(request.user)
|
#
|
||||||
# device.generate_challenge()
|
# def post(self, request, *args, **kwargs):
|
||||||
return render(request, self.template_name)
|
# otp_code = request.POST.get("otp_code")
|
||||||
|
#
|
||||||
def post(self, request, *args, **kwargs):
|
# if self.verify_otp(otp_code, request.user):
|
||||||
otp_code = request.POST.get("otp_code")
|
# messages.success(request, _("OTP verified successfully!"))
|
||||||
|
# return redirect("home")
|
||||||
if self.verify_otp(otp_code, request.user):
|
#
|
||||||
messages.success(request, _("OTP verified successfully!"))
|
# messages.error(request, _("Invalid OTP. Please try again."))
|
||||||
return redirect("home")
|
# return render(request, self.template_name)
|
||||||
|
|
||||||
messages.error(request, _("Invalid OTP. Please try again."))
|
|
||||||
return render(request, self.template_name)
|
|
||||||
|
|
||||||
# def verify_otp(self, otp_code, user):
|
# def verify_otp(self, otp_code, user):
|
||||||
# device = default_device(user)
|
# device = default_device(user)
|
||||||
@ -237,8 +234,6 @@ class OTPView(View, LoginRequiredMixin):
|
|||||||
# return False
|
# return False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class HomeView(TemplateView):
|
class HomeView(TemplateView):
|
||||||
template_name = "index.html"
|
template_name = "index.html"
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<!-- VIN -->
|
<!-- VIN -->
|
||||||
<div class="col-lg-4 col-xl-6">
|
<div class="col-lg-4 col-xl-6">
|
||||||
<div class="card bg-body">
|
<div class="card bg-body mb-3">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
@ -105,7 +105,8 @@
|
|||||||
id="specification-btn"
|
id="specification-btn"
|
||||||
data-bs-toggle="modal"
|
data-bs-toggle="modal"
|
||||||
data-bs-target="#specificationsModal"
|
data-bs-target="#specificationsModal"
|
||||||
disabled>{% trans 'specifications'|capfirst %}
|
disabled>
|
||||||
|
{% trans 'specifications'|capfirst %}
|
||||||
</button>
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="btn btn-sm btn-phoenix-warning p-1"
|
class="btn btn-sm btn-phoenix-warning p-1"
|
||||||
@ -161,7 +162,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Receiving Date Field -->
|
<!-- Receiving Date Field -->
|
||||||
<div class="col-lg-4 col-xl-4">
|
<div class="col-lg-4 col-xl-4">
|
||||||
<div class="card bg-body my-3">
|
<div class="card bg-body my-3">
|
||||||
@ -176,7 +176,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Remarks Card -->
|
<!-- Remarks Card -->
|
||||||
<div class="col-lg-4 col-xl-8">
|
<div class="col-lg-4 col-xl-8">
|
||||||
<div class="card bg-body my-3">
|
<div class="card bg-body my-3">
|
||||||
@ -202,10 +201,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
<!--Specification Modal-->
|
<!--Specification Modal-->
|
||||||
<div class="modal fade"
|
<div class="modal fade"
|
||||||
@ -289,7 +287,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user