jenkins-projects/views/todo.ejs
2024-01-31 08:48:49 +00:00

38 lines
863 B
Text

<!DOCTYPE html>
<html>
<head>
<title> To DO LIST# </title>
<style>
a {
text-decoration: none;
color: black;
}
</style>
</head>
<body>
<h1> 12 FACTOR APP!!! </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>