-
Notifications
You must be signed in to change notification settings - Fork 0
/
landing.html
43 lines (35 loc) · 1.52 KB
/
landing.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Todo App</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</head>
<body>
<div style="margin-top: 50px;" class="ui container">
<h1 class="ui center aligned header">todo_list</h1>
<form class="ui form" action="/add" method="post">
<div class="field">
<label>todo tittle</label>
<input type="text" name="dappa" placeholder="ingu eluthavam"><br>
</div>
<button class="ui blue button" type="submit">Add</button>
</form>
<hr>
{% for new_task in new %}
<div class="ui segment">
<p class="ui big header">{{ new_task.id }} | {{ new_task.dappa }}</p>
{% if new_task.task == False %}
<span class="ui gray label">Not Complete</span>
{% else %}
<span class="ui green label">Completed</span>
{% endif %}
<a class="ui blue button" href="/update/{{new_task.id}}">Update</a>
<a class="ui red button" href="/delete/{{new_task.id}}">Delete</a>
</div>
{% endfor %}
</div>
</body>
</html>