-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.js
24 lines (16 loc) · 964 Bytes
/
edit.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<form action="/update" method="POST">
<input type="hidden" name="index" value="<%= index %>">
<label for="batch">Batch:</label>
<input type="text" name="batch" id="batch" value="<%= entry.batch %>" required>
<label for="teacher">Teacher:</label>
<input type="text" name="teacher" id="teacher" value="<%= entry.teacher %>" required>
<label for="classroom">Classroom:</label>
<input type="text" name="classroom" id="classroom" value="<%= entry.classroom %>" required>
<label for="day">Day:</label>
<input type="text" name="day" id="day" value="<%= entry.day %>" required>
<label for="startTime">Start Time:</label>
<input type="number" name="startTime" id="startTime" value="<%= entry.startTime %>" required>
<label for="endTime">End Time:</label>
<input type="number" name="endTime" id="endTime" value="<%= entry.endTime %>" required>
<button type="submit">Update</button>
</form>