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