diff --git a/inventory/__pycache__/models.cpython-311.pyc b/inventory/__pycache__/models.cpython-311.pyc index 9740f565..5283ab05 100644 Binary files a/inventory/__pycache__/models.cpython-311.pyc and b/inventory/__pycache__/models.cpython-311.pyc differ diff --git a/inventory/__pycache__/urls.cpython-311.pyc b/inventory/__pycache__/urls.cpython-311.pyc index ca079c86..59fba1de 100644 Binary files a/inventory/__pycache__/urls.cpython-311.pyc and b/inventory/__pycache__/urls.cpython-311.pyc differ diff --git a/inventory/models.py b/inventory/models.py index ed06a68f..00b16eb6 100644 --- a/inventory/models.py +++ b/inventory/models.py @@ -523,7 +523,7 @@ class Dealer(models.Model, LocalizedNameMixin): return None @property - def get_plan_price(self): + def get_plan(self): """Get the price of the active subscription plan for the dealer.""" active_plan = self.get_active_plan if active_plan: @@ -531,7 +531,7 @@ class Dealer(models.Model, LocalizedNameMixin): name=active_plan.plan ).first() if subscription_plan: - return subscription_plan.price + return subscription_plan return None diff --git a/inventory/urls.py b/inventory/urls.py index c615e343..fdc8ca11 100644 --- a/inventory/urls.py +++ b/inventory/urls.py @@ -12,17 +12,17 @@ urlpatterns = [ path('welcome/', views.WelcomeView.as_view(), name='welcome'), # Accounts URLs - path('login/', allauth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'), - path('logout/', allauth_views.LogoutView.as_view(template_name='accounts/logout.html'), name='logout'), - path('signup/', allauth_views.SignupView.as_view(template_name='accounts/signup.html'), name='signup'), + path('login/', allauth_views.LoginView.as_view(template_name='account/login.html'), name='account_login'), + path('logout/', allauth_views.LogoutView.as_view(template_name='account/logout.html'), name='account_logout'), + path('signup/', allauth_views.SignupView.as_view(template_name='account/signup.html'), name='account_signup'), path('change-password/', - allauth_views.PasswordChangeView.as_view(template_name='accounts/password_change.html'), + allauth_views.PasswordChangeView.as_view(template_name='account/password_change.html'), name='change_password'), path('reset-password/', - allauth_views.PasswordResetView.as_view(template_name='accounts/password_reset.html'), + allauth_views.PasswordResetView.as_view(template_name='account/password_reset.html'), name='reset_password'), path('password-reset-done/', - allauth_views.PasswordResetDoneView.as_view(template_name='accounts/password_reset_done.html'), + allauth_views.PasswordResetDoneView.as_view(template_name='account/password_reset_done.html'), name='password_reset_done'), # Dealer URLs diff --git a/static/css/theme.css b/static/css/theme.css index 7e3e3884..40b6b7b0 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -880,7 +880,7 @@ } [data-bs-theme=dark] .table-dark { - --phoenix-table-bg: $ value; + --phoenix-table-bg: #141824; } /*----------------------------------------------- @@ -4022,10 +4022,7 @@ progress { -webkit-box-shadow: inset 0 1px 2px transparent; box-shadow: inset 0 1px 2px transparent; -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; - transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -42350,7 +42347,7 @@ a[href].bg-body-secondary:hover, a[href].bg-body-secondary:focus { --phoenix-navbar-vertical-link-hover-bg: #31374a; --phoenix-navbar-vertical-link-active-color: #fff; --phoenix-navbar-vertical-link-disable-color: #8a94ad; - --phoenix-navbar-vertical-hr-color: $ gray-800; + --phoenix-navbar-vertical-hr-color: #6e7891; --phoenix-navbar-vertical-collapsed-menu-bg: #222834; --phoenix-logo-text: #eff2f6; --phoenix-navbar-footer-border-color: #31374a; diff --git a/templates/accounts/2FA.html b/templates/account/2FA.html similarity index 100% rename from templates/accounts/2FA.html rename to templates/account/2FA.html diff --git a/templates/accounts/forgot-password.html b/templates/account/forgot-password.html similarity index 100% rename from templates/accounts/forgot-password.html rename to templates/account/forgot-password.html diff --git a/templates/accounts/lock-screen.html b/templates/account/lock-screen.html similarity index 100% rename from templates/accounts/lock-screen.html rename to templates/account/lock-screen.html diff --git a/templates/accounts/login.html b/templates/account/login.html similarity index 89% rename from templates/accounts/login.html rename to templates/account/login.html index 618f7c6b..dd203b6f 100644 --- a/templates/accounts/login.html +++ b/templates/account/login.html @@ -21,7 +21,7 @@ {% include "socialaccount/snippets/login.html" with page_layout="entrance" %} {% endif %} {% if not SOCIALACCOUNT_ONLY %} -
{% endif %} -{{ _("Are you sure you want to sign out?") }}
{% trans 'Active until' %}: {{ dealer.get_active_plan.end_date|date}}

@@ -153,10 +157,7 @@