forked from sayalishewale/node-todo-cicd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.ejs
37 lines (31 loc) · 902 Bytes
/
todo.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
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<title>My shaandar todolist</title>
<style>
a {
text-decoration: none;
color: black;
}
</style>
</head>
<body>
<h1>TrainWithShubham Community is Super Duper Awesome!!! </h1>
<ul>
<% todolist.forEach(function(todo, index) { %>
<li>
<a href="/todo/delete/<%= index %>">✘</a>
<a href="/todo/<%= index %>">✎</a>
<%- todo %>
</li>
<% }); %>
</ul>
<form action="/todo/add/" method="post">
<p>
<label for="newtodo">What shoud I do?</label>
<input type="text" name="newtodo" id="newtodo" autofocus />
<input type="submit" value="Add" />
</p>
</form>
</body>
</html>