-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (65 loc) · 1.88 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{% extends 'base.html' %}
{% block title %}
Fruitful
{% endblock %}
{% block body %}
<div class="topNavBar">
<div class="invite">
Invite
</div>
<h1> Fruitful </h1>
<div class="menu">
Menu
</div>
</div>
<div class="taskContainer">
<div class="tasks">
<p> To Do </p>
<div id="toDo">
<form action="/" method="POST">
<label for="task"> Task: </label>
<input type="text" name="taskName" id="taskName" required>
<br>
<input type="submit" value="Add Task" id="addToDo">
</form>
</div>
</div>
<div class="tasks">
<p> Doing </p>
<div id="Doing">
<div id="addDoing"> Add Task </div>
</div>
</div>
<div class="tasks">
<p> Done </p>
<div id="Done">
<div id="addDone"> Add Task </div>
<div id="addDone"> Temp Task </div>
</div>
</div>
</div>
{% if tasks|length < 1 %}
<h3> No tasks created yet </h3>
{% else %}
<table>
<tr>
<th> Task </th>
<th> Added </th>
<th> Actions </th>
</tr>
{% for task in tasks %}
<tr>
<td>{{ task.taskName }}</td>
<td>{{ task.dateCreated.date() }}</td>
<td>
<a href="/update/{{task.id}}"> Edit Task </a>
<br>
<a href="/delete/{{task.id}}"> Delete Task </a>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
<br>
<h2> Add Task </h2>
{% endblock %}