diff --git a/NorahUniversity/__pycache__/settings.cpython-312.pyc b/NorahUniversity/__pycache__/settings.cpython-312.pyc index e8aace0..668c15d 100644 Binary files a/NorahUniversity/__pycache__/settings.cpython-312.pyc and b/NorahUniversity/__pycache__/settings.cpython-312.pyc differ diff --git a/NorahUniversity/settings.py b/NorahUniversity/settings.py index e0fbf71..8b79fea 100644 --- a/NorahUniversity/settings.py +++ b/NorahUniversity/settings.py @@ -57,12 +57,27 @@ INSTALLED_APPS = [ 'django_countries', 'django_celery_results', 'django_q', + 'easyaudit' + ] + + SITE_ID = 1 -# CKEDITOR_BASEPATH = BASE_DIR/'static' +LOGIN_REDIRECT_URL = '/dashboard/' + + +ACCOUNT_LOGOUT_REDIRECT_URL = '/' + + +ACCOUNT_SIGNUP_REDIRECT_URL = '/dashboard/' + + +LOGIN_URL = '/accounts/login/' + + AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', @@ -80,6 +95,7 @@ MIDDLEWARE = [ 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'allauth.account.middleware.AccountMiddleware', + 'easyaudit.middleware.easyaudit.EasyAuditMiddleware', ] ROOT_URLCONF = 'NorahUniversity.urls' diff --git a/recruitment/__pycache__/forms.cpython-312.pyc b/recruitment/__pycache__/forms.cpython-312.pyc index 4c34029..1ae9473 100644 Binary files a/recruitment/__pycache__/forms.cpython-312.pyc and b/recruitment/__pycache__/forms.cpython-312.pyc differ diff --git a/recruitment/__pycache__/models.cpython-312.pyc b/recruitment/__pycache__/models.cpython-312.pyc index fa7751d..053cd40 100644 Binary files a/recruitment/__pycache__/models.cpython-312.pyc and b/recruitment/__pycache__/models.cpython-312.pyc differ diff --git a/recruitment/__pycache__/signals.cpython-312.pyc b/recruitment/__pycache__/signals.cpython-312.pyc index 14eddf8..ece9632 100644 Binary files a/recruitment/__pycache__/signals.cpython-312.pyc and b/recruitment/__pycache__/signals.cpython-312.pyc differ diff --git a/recruitment/__pycache__/urls.cpython-312.pyc b/recruitment/__pycache__/urls.cpython-312.pyc index f02d3e3..7b66768 100644 Binary files a/recruitment/__pycache__/urls.cpython-312.pyc and b/recruitment/__pycache__/urls.cpython-312.pyc differ diff --git a/recruitment/__pycache__/utils.cpython-312.pyc b/recruitment/__pycache__/utils.cpython-312.pyc index 52a180d..9bbe4cd 100644 Binary files a/recruitment/__pycache__/utils.cpython-312.pyc and b/recruitment/__pycache__/utils.cpython-312.pyc differ diff --git a/recruitment/__pycache__/views.cpython-312.pyc b/recruitment/__pycache__/views.cpython-312.pyc index d268e6b..f32524d 100644 Binary files a/recruitment/__pycache__/views.cpython-312.pyc and b/recruitment/__pycache__/views.cpython-312.pyc differ diff --git a/recruitment/urls.py b/recruitment/urls.py index 2ed3d74..30dcb9c 100644 --- a/recruitment/urls.py +++ b/recruitment/urls.py @@ -101,4 +101,8 @@ urlpatterns = [ path('api/jobs//candidates//reschedule-meeting//', views.api_reschedule_candidate_meeting, name='api_reschedule_candidate_meeting'), # New URL for simple page-based meeting scheduling path('jobs//candidates//schedule-meeting-page/', views.schedule_meeting_for_candidate, name='schedule_meeting_for_candidate'), + + + # users urls + path('user/',views.user_detail,name='user_detail') ] diff --git a/recruitment/views.py b/recruitment/views.py index 5748009..5c89c40 100644 --- a/recruitment/views.py +++ b/recruitment/views.py @@ -1,7 +1,7 @@ import json import requests +from django.contrib.auth.models import User from rich import print - from django.template.loader import render_to_string from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods @@ -2327,3 +2327,9 @@ def schedule_meeting_for_candidate(request, job_slug, candidate_pk): 'job': job, 'candidate': candidate }) + + + +def user_detail(requests,pk): + user=get_object_or_404(User,pk=pk) + return render(requests,'user/profile.html') diff --git a/templates/account/login.html b/templates/account/login.html new file mode 100644 index 0000000..b7e66c7 --- /dev/null +++ b/templates/account/login.html @@ -0,0 +1,186 @@ +{% load static %} + + + + + + KAAUH ATS - Sign In (Bootstrap) + + + + + + + + +
+ +
+
+

+ +
+
جامعة الأميرة نورة بنت عبدالرحمن الأكاديمية
+
ومستشفى الملك عبدالله بن عبدالعزيز التخصصي
+
Princess Nourah bint Abdulrahman University
+
King Abdullah bin Abdulaziz University Hospital
+
+
+

+ Powered By TENHAL | تنحل +
+
+ +
+ +
+ +

Sign In

+ +
+
+ {% csrf_token %} + +
+ + +
+ +
+ + + + +
+ +
+ + +
+ + +
+
+
+ +
+
+ + + + \ No newline at end of file diff --git a/templates/account/password_change.html b/templates/account/password_change.html new file mode 100644 index 0000000..b05d6df --- /dev/null +++ b/templates/account/password_change.html @@ -0,0 +1,46 @@ +{% extends "base.html" %} +{% load static %} +{% load i18n %} +{% load crispy_forms_tags %} {% block title %}{% trans "Change Password" %} - KAAUH ATS{% endblock %} + +{% block styles %} +{% endblock %} + +{% block content %} +
+ +
+ +

+ {% trans "Change Password" %} +

+ +

+ {% trans "Please enter your current password and a new password to secure your account." %} +

+ +
+ {% csrf_token %} + + {{ form|crispy }} + + {% if form.non_field_errors %} + + {% endif %} + + +
+ + +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/account/password_reset.html b/templates/account/password_reset.html new file mode 100644 index 0000000..98ae130 --- /dev/null +++ b/templates/account/password_reset.html @@ -0,0 +1,198 @@ +{% load static i18n %} + + + + + + KAAUH ATS - Sign In (Bootstrap) + + + + + + + + +
+ +
+
+

+ +
+
جامعة الأميرة نورة بنت عبدالرحمن الأكاديمية
+
ومستشفى الملك عبدالله بن عبدالعزيز التخصصي
+
Princess Nourah bint Abdulrahman University
+
King Abdullah bin Abdulaziz University Hospital
+
+
+

+ Powered By TENHAL | تنحل +
+
+ +
+ +
+ +

+ {% trans "Forgot Password?" %} +

+ +

+ {% trans "Enter your e-mail address to reset your password." %} +

+ + {% url 'account_reset_password' as password_reset_url %} +
+ {% csrf_token %} + +
+ + + {% if form.email.errors %} + + {% endif %} + + + {% if form.non_field_errors %} + + {% endif %} +
+ + +
+ +
+

+ {% trans "Remember your password?" %} + {% trans "Log In" %} +

+
+
+ +
+
+ + + + + + diff --git a/templates/account/signup.html b/templates/account/signup.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/base.html b/templates/base.html index bd2fa28..de49a92 100644 --- a/templates/base.html +++ b/templates/base.html @@ -242,6 +242,18 @@ html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; } html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; } html[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; } + + + .form-control-sm, + .btn-sm { + /* Reduce vertical padding even more than default Bootstrap 'sm' */ + padding-top: 0.2rem !important; + padding-bottom: 0.2rem !important; + /* Ensure a consistent, small height for both */ + height: 35px !important; + font-size: 2 rem !important; /* Slightly smaller font */ + } + {% block customCSS %}{% endblock %} @@ -462,7 +474,7 @@
  • -
  • {% trans "My Profile" %}
  • +
  • {% trans "My Profile" %}
  • {% trans "Settings" %}
  • {% trans "Activity Log" %}
  • {% trans "Help & Support" %}
  • @@ -485,7 +497,7 @@
  • -
    + {% csrf_token %}
    + + + + + + +
    + +
    +
    {% trans "Security" %}
    + + +
    + +
    +
    {% trans "Account Status" %}
    + +
    +
    {% trans "Username" %}
    +
    {{ user.username }}
    +
    + +
    +
    {% trans "Last Login" %}
    +
    + {% if user.last_login %}{{ user.last_login|date:"F d, Y P" }}{% else %}N/A{% endif %} +
    +
    + +
    +
    {% trans "Date Joined" %}
    +
    {{ user.date_joined|date:"F d, Y" }}
    +
    +
    + +
    + + + + +{% endblock %} \ No newline at end of file