-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathusers.html
89 lines (85 loc) · 2.71 KB
/
users.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Sumit Saha" />
<meta name="owner" content="learnwithsumit.com" />
<title>Title</title>
<link rel="shortcut icon" href="./images/favicon.png" />
<link rel="stylesheet" href="./stylesheets/toastify.css" />
<link rel="stylesheet" href="./stylesheets/style.css" />
<script src="./js/toastify.js"></script>
</head>
<body>
<div class="menu">
<div class="menu-item"><a href="/inbox">Inbox</a></div>
<div class="menu-item"><a href="/users">Users</a></div>
<div class="menu-item"><a href="/">Login</a></div>
</div>
<div class="manageUser-container">
<div id="title">
<h2>Manage Users</h2>
</div>
<div class="new-message-container new-user">
<a href="#" onclick="openModal()">+</a>
</div>
<div id="users-table">
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Manage</th>
</tr>
</thead>
<tbody id="users-table">
<tr id="">
<td class="name">
<img src="./images/user1.png" />
<span>User 1</span>
</td>
<td>[email protected]</td>
<td class="manage">
<img src="./images/trash.png" alt="Delete" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-wrapper" id="add-user-modal">
<div class="modal">
<a href="#" onclick="closeModal()" class="modal-close">+</a>
<div class="modal-title">
<h2>Create New User</h2>
</div>
<div class="modal-body">
<form id="add-user-form">
<input type="text" placeholder="enter name" name="name" />
<p class="error show">This is error</p>
<input type="text" placeholder="enter email" name="email" />
<input type="text" placeholder="enter mobile" name="mobile" />
<input
type="password"
placeholder="enter password"
name="password"
/>
<input type="file" name="avatar" />
<input type="submit" value="Submit" />
</form>
</div>
</div>
</div>
<script>
const modal = document.querySelector("#add-user-modal");
function closeModal() {
modal.style.display = "none";
}
function openModal() {
modal.style.display = "block";
}
</script>
</body>
</html>