-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusers.html
More file actions
178 lines (167 loc) · 8.06 KB
/
users.html
File metadata and controls
178 lines (167 loc) · 8.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BSafe Group - User Management</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<!-- Sidebar -->
<nav class="sidebar" id="sidebar">
<div class="logo"><a href="index.html"><img src="logo/logo.png" alt="" width="170" height="170"></a></div>
<a href="index.html"><i class="bi bi-speedometer2"></i> Dashboard</a>
<a href="users.html"><i class="bi bi-people"></i> Users</a>
<a href="add-user.html"><i class="bi bi-person-plus"></i> Add User</a>
<a href="add-service.html"><i class="bi bi-briefcase"></i> Add Service</a>
<a href="add-article.html"><i class="bi bi-newspaper"></i> Add Article</a>
<a href="user-settings.html"><i class="bi bi-gear"></i> Settings</a>
</nav>
<!-- Menu toggle for mobile -->
<div class="menu-toggle" onclick="toggleSidebar()">
<i class="bi bi-list"></i>
</div>
<!-- Content -->
<div class="content">
<!-- Top Navigation -->
<div class="top-nav">
<div>User Management</div>
<div class="user-info dropdown">
<a href="#" class="d-flex align-items-center text-decoration-none dropdown-toggle" id="userDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://via.placeholder.com/35" alt="User" class="rounded-circle">
<span class="ms-2 d-none d-md-inline">John Doe</span>
</a>
<ul class="dropdown-menu dropdown-menu-start p-3" style="min-width: 200px;">
<!-- إعدادات المستخدم -->
<li>
<a class="dropdown-item d-flex align-items-center py-2" href="user-settings.html">
<i class="bi bi-gear fs-5 me-2"></i>
<span class="fw-medium">setting</span>
</a>
</li>
<!-- فاصل -->
<li><hr class="dropdown-divider my-1"></li>
<!-- زر الخروج -->
<li>
<a class="dropdown-item d-flex align-items-center py-2 text-danger" href="#">
<i class="bi bi-box-arrow-right fs-5 me-2"></i>
<span class="fw-medium"> logout</span>
</a>
</li>
</ul>
</div>
</div>
<!-- Main Content -->
<div class="dashboard-header">
<h1>User Management</h1>
<a href="add-user.html"> <button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#addTicketModal">
<i class="bi bi-plus-circle me-1"></i> Add user
</button>
</a>
</div>
<!-- Users Table -->
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table user-table">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Role</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>John Doe</td>
<td>[email protected]</td>
<td>Admin</td>
<td><span class="badge badge-success">Active</span></td>
<td>
<a href="edit-user.html" class="btn btn-sm btn-primary">Edit</a>
<button class="btn btn-sm btn-danger delete-btn"
data-bs-toggle="modal"
data-bs-target="#confirmDeleteModal"
data-name="John Doe">
Delete
</button>
</td>
</tr>
<tr>
<td>2</td>
<td>Jane Smith</td>
<td>[email protected]</td>
<td>Customer</td>
<td><span class="badge badge-success">Active</span></td>
<td>
<a href="edit-user.html" class="btn btn-sm btn-primary">Edit</a>
<button class="btn btn-sm btn-danger delete-btn"
data-bs-toggle="modal"
data-bs-target="#confirmDeleteModal"
data-name="Jane Smith">
Delete
</button>
</td>
</tr>
<tr>
<td>3</td>
<td>Mike Johnson</td>
<td>[email protected]</td>
<td>Customer</td>
<td><span class="badge badge-warning">Pending</span></td>
<td>
<a href="edit-user.html" class="btn btn-sm btn-primary">Edit</a>
<button class="btn btn-sm btn-danger delete-btn"
data-bs-toggle="modal"
data-bs-target="#confirmDeleteModal"
data-name="Mike Johnson">
Delete
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Delete Confirmation Modal -->
<div class="modal fade" id="confirmDeleteModal" tabindex="-1" aria-labelledby="confirmDeleteModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="confirmDeleteModalLabel">Confirm Deletion</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Are you sure you want to delete this user: <strong id="deleteUserName"></strong>?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" id="confirmDeleteBtn">Delete</button>
</div>
</div>
</div>
</div>
<!-- Success Toast -->
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
<div id="deleteSuccessToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="3000">
<div class="toast-header">
<strong class="me-auto">Success</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
User deleted successfully!
</div>
</div>
</div>
<script src="script/main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>