-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.ejs
27 lines (23 loc) · 903 Bytes
/
edit.ejs
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/css/ep.css">
<title>task</title>
</head>
<body>
<div id="input">
<form action="/edit/<%=task.id%>" method="post">
<h2>Edit your task here...</h2>
<label for="title">Title:</label>
<input type="text" id="title" name="title" value="<%=task.title%>">
<label for="desc">Description:</label>
<textarea name="desc" id="desc" cols="30" rows="10" required><%=task.title%></textarea>
<label for="date">Date</label>
<input type="date" id="date " name="date" value="<%=task.date%>" required>
<button type="submit">Edit your task</button>
</form>
</div>
</body>
</html>