-
-
-
-
{% trans "Email Addresses" %}
-
- {% trans "These email addresses are linked to your account. You can set primary address, resend verification, or remove an address." %}
-
+{% block title %}{% trans "Email Addresses" %} - {{ block.super }}{% endblock %}
+
+{% block content %}
+
+
+
+
+
+
+
+
+
+
+ {% trans "Email Addresses" %}
+
+
+
+
+
+
+
+ {% trans "About Email Addresses" %}
+
+
+ {% trans "These email addresses are linked to your account. You can set primary address, resend verification, or remove an address." %}
+
+
+
+
+
+
+
+
+
+ {% trans "Linked Email Addresses" %}
+
+
+
+
{% if messages %}
{% for message in messages %}
-
- {{ message }}
+
{% endfor %}
{% endif %}
@@ -58,105 +67,170 @@
{% if emailaddresses %}
{% for emailaddress in emailaddresses %}
-
+
-
-
{{ emailaddress.email }}
-
-
+
+
{{ emailaddress.email }}
+
+
+
{% if emailaddress.primary %}
- {% trans "Primary" %}
+
+
+ {% trans "Primary" %}
+
{% endif %}
{% if emailaddress.verified %}
- {% trans "Verified" %}
+
+
+ {% trans "Verified" %}
+
{% else %}
- {% trans "Unverified" %}
- {% endif %}
-
-
-
-
-
- {% if not emailaddress.primary %}
-
- {% endif %}
-
-
- {% if not emailaddress.verified %}
-
- {% endif %}
-
-
- {% if not emailaddress.primary %}
-
+
+
+ {% trans "Unverified" %}
+
{% endif %}
+
+
+
+ {% if not emailaddress.primary %}
+
+ {% endif %}
+
+
+ {% if not emailaddress.verified %}
+
+ {% endif %}
+
+
+ {% if not emailaddress.primary %}
+
+ {% endif %}
+
+
{% endfor %}
{% else %}
-
{% trans "No email addresses found." %}
+
+
+ {% trans "No email addresses found." %}
+
{% endif %}
+
+
-
-
-
- {% if can_add_email %}
-
{% trans "Add Email Address" %}
-
-
-
-
\ No newline at end of file
+ }
+
+ // Form validation
+ const form = document.getElementById('add-email-form');
+ if (form) {
+ form.addEventListener('submit', function(e) {
+ const emailInput = document.getElementById('id_email');
+ const emailValue = emailInput.value.trim();
+
+ if (!emailValue) {
+ e.preventDefault();
+ alert("{% trans 'Please enter an email address.' %}");
+ emailInput.focus();
+ return false;
+ }
+
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
+ if (!emailRegex.test(emailValue)) {
+ e.preventDefault();
+ alert("{% trans 'Please enter a valid email address.' %}");
+ emailInput.focus();
+ return false;
+ }
+ });
+ }
+});
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/account/password_change.html b/templates/account/password_change.html
index fcb83a9..6bf97b2 100644
--- a/templates/account/password_change.html
+++ b/templates/account/password_change.html
@@ -1,98 +1,137 @@
-{% load static %}
+{% extends "base.html" %}
{% load i18n %}
-{% get_current_language_bidi as LANGUAGE_BIDI %}
-{% get_current_language as LANGUAGE_CODE %}
-
-
-
-
-
-
{% trans "Change Password" %} - KAAUH ATS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+{% block title %}{% trans "Change Password" %} - {{ block.super }}{% endblock %}
+
+{% block content %}
+
+
+
+
+
+
+
+
+
+
+ {% trans "Change Password" %}
+
+
+
+
+
+
+
-
{% trans "Change Password" %}
-
+
{% trans "Please enter your current password and a new password to secure your account." %}
-
-
-
-
\ No newline at end of file
+ }
+});
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
index b2301b8..0fa04cc 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -273,12 +273,12 @@