-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser-settings.html
More file actions
197 lines (184 loc) · 10.2 KB
/
user-settings.html
File metadata and controls
197 lines (184 loc) · 10.2 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!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 Settings</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.18/css/intlTelInput.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 Settings</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 Settings</h1>
</div>
<!-- User Settings Form -->
<div class="card">
<div class="card-body">
<ul class="nav nav-tabs" id="settingsTabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" style="color: orange;" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="true">Profile</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" style="color: orange;" id="security-tab" data-bs-toggle="tab" data-bs-target="#security" type="button" role="tab" aria-controls="security" aria-selected="false">Security</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" style="color: orange;" id="notifications-tab" data-bs-toggle="tab" data-bs-target="#notifications" type="button" role="tab" aria-controls="notifications" aria-selected="false">Notifications</button>
</li>
</ul>
<div class="tab-content" id="settingsTabsContent">
<!-- Profile Tab -->
<div class="tab-pane fade show active" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<form id="profileForm" class="mt-4 ">
<div class="row mb-3 ">
<div class="col-md-6">
<label class="form-label">First Name</label>
<input type="text" class="form-control" value="John" required>
</div>
<div class="col-md-6 ">
<label class="form-label">Last Name</label>
<input type="text" class="form-control" value="Doe" required>
</div>
</div>
<div class="mb-3">
<label class="form-label">Email address</label>
<input type="email" class="form-control" value="john@example.com" required>
</div>
<div class="mb-3">
<label class="form-label">Phone Number <span class="text-danger">*</span></label>
<input type="tel" id="phone" class="form-control" value="+1 (555) 123-4567" required>
</div>
<div class="mb-3">
<label class="form-label">Job Title</label>
<input type="text" class="form-control" value="Web Developer" required>
</div>
<div class="mb-3">
<label class="form-label">Profile Picture</label>
<input type="file" class="form-control" accept="image/*">
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary">Update Profile</button>
</div>
</form>
</div>
<!-- Security Tab -->
<div class="tab-pane fade" id="security" role="tabpanel" aria-labelledby="security-tab">
<form id="securityForm" class="mt-4">
<div class="mb-3">
<label class="form-label">Current Password</label>
<input type="password" class="form-control" required>
</div>
<div class="mb-3">
<label class="form-label">New Password</label>
<input type="password" class="form-control" required>
</div>
<div class="mb-3">
<label class="form-label">Confirm New Password</label>
<input type="password" class="form-control" required>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary">Change Password</button>
</div>
</form>
</div>
<!-- Notifications Tab -->
<div class="tab-pane fade" id="notifications" role="tabpanel" aria-labelledby="notifications-tab">
<form id="notificationForm" class="mt-4">
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="emailNotifications" checked>
<label class="form-check-label" for="emailNotifications">
Receive email notifications
</label>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="smsNotifications" checked>
<label class="form-check-label" for="smsNotifications">
Receive SMS notifications
</label>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="projectUpdates" checked>
<label class="form-check-label" for="projectUpdates">
Get notified about project updates
</label>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="ticketUpdates" checked>
<label class="form-check-label" for="ticketUpdates">
Get notified about ticket updates
</label>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" id="dailyDigest" checked>
<label class="form-check-label" for="dailyDigest">
Receive daily digest
</label>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary">Save Notification Settings</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="./script/main.js"></script>
<script>
// Toggle sidebar for mobile
function toggleSidebar() {
document.getElementById('sidebar').classList.toggle('active');
}
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.18/js/intlTelInput.min.js"></script>
<script src="./script/setting.js"></script>
</body>
</html>