diff --git a/CyberCP/settings.py b/CyberCP/settings.py index ac1579490..687b6268b 100644 --- a/CyberCP/settings.py +++ b/CyberCP/settings.py @@ -96,6 +96,7 @@ TEMPLATES = [ 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'baseTemplate.context_processors.version_context', + 'baseTemplate.context_processors.cosmetic_context', ], }, }, diff --git a/baseTemplate/context_processors.py b/baseTemplate/context_processors.py index c63e23902..13d871c10 100644 --- a/baseTemplate/context_processors.py +++ b/baseTemplate/context_processors.py @@ -7,4 +7,20 @@ def version_context(request): 'CYBERPANEL_VERSION': VERSION, 'CYBERPANEL_BUILD': BUILD, 'CYBERPANEL_FULL_VERSION': f"{VERSION}.{BUILD}" - } \ No newline at end of file + } + +def cosmetic_context(request): + """Add cosmetic data (custom CSS) to all templates""" + try: + from .models import CyberPanelCosmetic + cosmetic = CyberPanelCosmetic.objects.get(pk=1) + return { + 'cosmetic': cosmetic + } + except: + from .models import CyberPanelCosmetic + cosmetic = CyberPanelCosmetic() + cosmetic.save() + return { + 'cosmetic': cosmetic + } \ No newline at end of file diff --git a/baseTemplate/templates/baseTemplate/index.html b/baseTemplate/templates/baseTemplate/index.html index 82a55f350..3a6986ddd 100644 --- a/baseTemplate/templates/baseTemplate/index.html +++ b/baseTemplate/templates/baseTemplate/index.html @@ -15,6 +15,11 @@ + + + diff --git a/mailServer/templates/mailServer/changeEmailPassword.html b/mailServer/templates/mailServer/changeEmailPassword.html index a0e79c185..363f7e93d 100644 --- a/mailServer/templates/mailServer/changeEmailPassword.html +++ b/mailServer/templates/mailServer/changeEmailPassword.html @@ -242,6 +242,16 @@ margin-right: 0.5rem; } + .password-hint { + color: var(--text-secondary, #64748b); + margin-top: 0.5rem; + display: block; + } + + .action-section { + margin-top: 2rem; + } + @keyframes spin { to { transform: rotate(360deg); } } @@ -324,7 +334,7 @@
- {% for items in websiteList %} @@ -345,7 +355,7 @@
- @@ -374,19 +384,19 @@
+ ng-model="emailPassword" readonly aria-label="{% trans 'Generated Password' %}">
- + {% trans "Make sure to save this password in a secure location" %}
-
+
- + {% trans "Make sure to save this password in a secure location" %}
-
+