-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-document.html
154 lines (145 loc) · 6.17 KB
/
add-document.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
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
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="icon" href="images\logo.jpg" type="image/icon type">
<title>DRM - Add Document</title>
<!-- Head Section -->
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="stylesheet" href="styles\add-document.css">
</head>
<!-- Body Section -->
<body>
<script src="script\add-document.js"></script>
<div class="main">
<div class="section">
<!-- Top Nav Bar Section -->
<div class="navbar">
<div class="hamburger">
<i class="fas fa-bars"></i>
</div>
<h1 class="navbar-heading">Add Document
<a href="login.html" id="logoutButton"><button class="logout-btn" id="logoutButton" name="button"
type="button">Logout</button></a>
</h1>
</div>
<!-- Actual Body Container -->
<div class="main-body-container">
<form action="/action_page.php">
<div class="row">
<div class="label">
<label for="docId">Document ID</label>
</div>
<div class="input">
<input type="text" id="docId" name="docId" placeholder="Your document id...">
</div>
</div>
<div class="row">
<div class="label">
<label for="docname">Document Name</label>
</div>
<div class="input">
<input type="text" id="docname" name="docname" placeholder="Your document name...">
</div>
</div>
<div class="row">
<div class="label">
<label for="project">Project</label>
</div>
<div class="input">
<input type="text" id="project" name="project" placeholder="Your project name...">
</div>
</div>
<div class="row">
<div class="label">
<label for="dept">Department</label>
</div>
<div class="input">
<input type="text" id="dept" name="dept" placeholder="Your department name...">
</div>
</div>
<div class="row">
<div class="label">
<label for="id">Document</label>
</div>
<div class="input">
<input type="file" id="doc-upload" name="doc-upload" accept="document">
</div>
</div>
<div class="row">
<input type="submit" value="Submit">
</div>
</form>
</div>
</div>
<!-- Side Bar Section -->
<div class="sidebar" id="sideNav">
<div class="profile">
<img src="images\dpp.jpg" alt="profile_picture">
<h3>Employee Name</h3>
<p>Technology Head</p>
</div>
<ul>
<li>
<a href="dashboard.html">
<span class="icon"><i class="fas fa-home"></i></span>
<span class="item">Dashboard</span>
</a>
</li>
<li>
<a href="list-members.html">
<span class="icon"><i class="fas fa-users"></i></span>
<span class="item">List of Members</span>
</a>
</li>
<li>
<a href="list-documents.html" class="active">
<span class="icon"><i class="fas fa-list-ol"></i></span>
<span class="item">List of Documents</span>
</a>
</li>
<li>
<a href="doc-assign.html">
<span class="icon"><i class="fas fa-file-signature"></i></span>
<span class="item">Assign to members</span>
</a>
</li>
<li>
<a href="view-review-pts.html">
<span class="icon"><i class="fas fa-solid fa-file-lines"></i></span>
<span class="item">View Review Points</span>
</a>
</li>
<li>
<a href="report-gen.html">
<span class="icon"><i class="fas fa-duotone fa-chart-simple"></i></span>
<span class="item">Report Generation</span>
</a>
</li>
</ul>
</div>
</div>
<script>
var hamburger = document.querySelector(".hamburger");
var logoutButton = document.getElementById("logoutButton");
var sideNav = document.getElementById("sideNav");
// When the side navigation bar is collapsed, set the logout button position to fixed.
sideNav.addEventListener("collapsed", () => {
logoutButton.style.position = "fixed";
logoutButton.style.top = "0";
});
// When the side navigation bar is expanded, set the logout button position to relative.
sideNav.addEventListener("expanded", () => {
logoutButton.style.position = "relative";
logoutButton.style.left = "70";
});
// Toggle the hamburger menu when clicked.
hamburger.addEventListener("click", function () {
document.querySelector("body").classList.toggle("active");
});
</script>
</body>
</html>