micro-users 1.6.3__py3-none-any.whl → 1.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of micro-users might be problematic. Click here for more details.
- {micro_users-1.6.3.dist-info → micro_users-1.7.0.dist-info}/METADATA +2 -1
- {micro_users-1.6.3.dist-info → micro_users-1.7.0.dist-info}/RECORD +15 -13
- users/filters.py +54 -19
- users/static/users/css/detail.css +47 -0
- users/static/users/css/login.css +111 -68
- users/static/users/css/profile.css +123 -0
- users/static/users/css/style.css +27 -145
- users/templates/registration/login.html +19 -34
- users/templates/users/profile/profile.html +97 -46
- users/templates/users/profile/profile_edit.html +81 -58
- users/templates/users/user_activity_log.html +2 -2
- users/templates/users/user_detail.html +95 -39
- {micro_users-1.6.3.dist-info → micro_users-1.7.0.dist-info}/LICENSE +0 -0
- {micro_users-1.6.3.dist-info → micro_users-1.7.0.dist-info}/WHEEL +0 -0
- {micro_users-1.6.3.dist-info → micro_users-1.7.0.dist-info}/top_level.txt +0 -0
|
@@ -4,47 +4,103 @@
|
|
|
4
4
|
{% load static %}
|
|
5
5
|
|
|
6
6
|
{% block content %}
|
|
7
|
-
<div class="card border-light shadow">
|
|
8
|
-
<div class="card-header h3">تفاصيل المستخدم</div>
|
|
9
|
-
<div class="card-body mt-2 row">
|
|
10
|
-
<div class="col-md-6 h4">
|
|
11
|
-
<p><strong>اسم الـمستخدم:</strong> {{ object.username }}</p>
|
|
12
|
-
<p><strong>الاســــــــــــــــــم:</strong> {{ object.get_full_name }}</p>
|
|
13
|
-
<p><strong>رقـــــم الـــهاتف:</strong> {{ object.phone }}</p>
|
|
14
|
-
<p><strong>جهـــــة الـــعمل:</strong> {{ object.occupation }}</p>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="col-md-6 h4">
|
|
17
|
-
<p><strong>البريد الالكتروني:</strong> {{ object.email }}</p>
|
|
18
|
-
<p><strong>تاريخ الإنشاء:</strong> {{ object.date_joined|date:"Y-m-d" }}</p>
|
|
19
|
-
<p><strong>آخر دخول:</strong> {{ object.last_login|date:"Y-m-d H:i" }}</p>
|
|
20
|
-
<p><strong>الصلاحيات:</strong>
|
|
21
|
-
{% if object.is_superuser %}
|
|
22
|
-
مدير النظام
|
|
23
|
-
{% elif object.is_staff %}
|
|
24
|
-
مستخدم مسؤول
|
|
25
|
-
{% else %}
|
|
26
|
-
مستخدم عادي
|
|
27
|
-
{% endif %}
|
|
28
|
-
</p>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
7
|
|
|
33
|
-
|
|
34
|
-
<div class="card mt-2 border-light shadow">
|
|
35
|
-
<div class="card-header h3">
|
|
36
|
-
سجل النشاط
|
|
37
|
-
</div>
|
|
38
|
-
<div class="mt-2 card-body p-1 table-responsive-lg">
|
|
39
|
-
{% render_table table %}
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
8
|
+
<link rel="stylesheet" href="{% static 'users/css/detail.css' %}">
|
|
42
9
|
|
|
43
|
-
|
|
44
|
-
<div class="
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
|
|
10
|
+
|
|
11
|
+
<div class="row justify-content-center">
|
|
12
|
+
<div class="col-lg-10">
|
|
13
|
+
<div class="glass-detail">
|
|
14
|
+
<div class="d-flex justify-content-between align-items-center mb-4 border-bottom border-light pb-3">
|
|
15
|
+
<h2 class="display-6 fw-bold text-primary mb-0">
|
|
16
|
+
<i class="bi bi-person-lines-fill me-2"></i> تفاصيل المستخدم
|
|
17
|
+
</h2>
|
|
18
|
+
|
|
19
|
+
<div class="d-flex gap-2">
|
|
20
|
+
{% if object.is_active %}
|
|
21
|
+
<div class="status-badge status-active" title="حساب مفعل">
|
|
22
|
+
<i class="bi bi-check-circle-fill"></i> فعال
|
|
23
|
+
</div>
|
|
24
|
+
{% else %}
|
|
25
|
+
<div class="status-badge status-inactive" title="حساب معطل">
|
|
26
|
+
<i class="bi bi-x-circle-fill"></i> معطل
|
|
27
|
+
</div>
|
|
28
|
+
{% endif %}
|
|
29
|
+
|
|
30
|
+
{% if object.is_staff %}
|
|
31
|
+
<div class="status-badge" style="background-color: rgba(13, 110, 253, 0.15); color: #0d6efd;" title="لديه صلاحيات إدارية">
|
|
32
|
+
<i class="bi bi-shield-lock-fill"></i> مسؤول
|
|
33
|
+
</div>
|
|
34
|
+
{% endif %}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col-md-6 border-start ps-md-4">
|
|
40
|
+
<div class="info-group">
|
|
41
|
+
<div class="info-label-sm">اسم المستخدم</div>
|
|
42
|
+
<div class="info-value-lg">{{ object.username }}</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="info-group">
|
|
45
|
+
<div class="info-label-sm">الاسم الكامل</div>
|
|
46
|
+
<div class="info-value-lg">{{ object.get_full_name }}</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="info-group">
|
|
49
|
+
<div class="info-label-sm">رقم الهاتف</div>
|
|
50
|
+
<div class="info-value-lg">{{ object.phone|default:"-" }}</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="col-md-6 pe-md-4">
|
|
55
|
+
<div class="info-group">
|
|
56
|
+
<div class="info-label-sm">البريد الإلكتروني</div>
|
|
57
|
+
<div class="info-value-lg">{{ object.email }}</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="info-group">
|
|
60
|
+
<div class="info-label-sm">نوع الصلاحيات</div>
|
|
61
|
+
<div class="info-value-lg text-primary">
|
|
62
|
+
{% if object.is_superuser %}
|
|
63
|
+
<i class="bi bi-stars me-1"></i> مدير النظام
|
|
64
|
+
{% elif object.is_staff %}
|
|
65
|
+
<i class="bi bi-person-gear me-1"></i> مستخدم مسؤول
|
|
66
|
+
{% else %}
|
|
67
|
+
<i class="bi bi-person me-1"></i> مستخدم عادي
|
|
68
|
+
{% endif %}
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="row">
|
|
72
|
+
<div class="col-6">
|
|
73
|
+
<div class="info-group">
|
|
74
|
+
<div class="info-label-sm">تاريخ الإنشاء</div>
|
|
75
|
+
<div class="text-muted fw-bold">{{ object.date_joined|date:"Y-m-d" }}</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-6">
|
|
79
|
+
<div class="info-group">
|
|
80
|
+
<div class="info-label-sm">آخر دخول</div>
|
|
81
|
+
<div class="text-muted fw-bold">{{ object.last_login|date:"Y-m-d H:i"|default:"-" }}</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div class="mt-4">
|
|
89
|
+
<h4 class="section-header mb-3">
|
|
90
|
+
<i class="bi bi-activity me-2"></i> سجل النشاط
|
|
91
|
+
</h4>
|
|
92
|
+
<div class="table-responsive">
|
|
93
|
+
{% render_table table %}
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div class="mt-4 pt-3 border-top border-light d-flex justify-content-end">
|
|
98
|
+
<a href="{% url 'manage_users' %}" class="btn btn-secondary rounded-pill px-4 fw-bold">
|
|
99
|
+
<i class="bi bi-arrow-right me-2"></i> العودة إلى إدارة المستخدمين
|
|
100
|
+
</a>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
48
104
|
</div>
|
|
49
105
|
|
|
50
106
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|