-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_task.html
More file actions
77 lines (63 loc) · 3.18 KB
/
view_task.html
File metadata and controls
77 lines (63 loc) · 3.18 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>View Task</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<!-- Navigation links -->
<div><nav class="navbar navbar-expand-sm bg-light">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/">HOME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/create_taskboard">ADD A TASKBOARD</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/view_taskboard">VIEW TASKBOARDS</a>
</li>
<li class="">
<a class="nav-link navbar-nav justify-content-end" href="{{ url }}">{{ url_string }}</a>
</li>
</ul>
</nav>
</div>
<div class="">
<form action="/view_task" method="post">
<label for="title">Title:</label>
<input type="text" id="title" name="title" value="{{ task_obj.title}}"><br>
<label for="ass">Currently assigned to :</label>
<input type="text" disabled name="ass" value="{{ task_obj.assigned_user}}"><br>
<label for="assigned_user">Assigned to :</label>
<select required name="assigned_user" id="assigned_user" >
<option value="" selected disabled hidden>--Please choose a user--</option>
{% for n in tb_clicked.tbd_users_email %}
<option value="{{ n }}">{{ n }}</option>
{% endfor %}
</select><br>
<label for="due_date">Due date:</label>
<input type="date" id="due_date" name="due_date" value="{{ task_obj.due_date}}"><br>
<label for="state">Completed:</label>
<input type="text" disabled name="state" value="{{ task_obj.status}}"/><br>
<label for="status">Change completion status:</label>
<!-- <input type="text" id="status" name="status" value="{{ task_obj.status[index]}}"> -->
<select name="status" id="status" required><br>
<option value="" selected disabled hidden>--Please choose state--</option>
<option value="True">completed</option>
<option value="False">not completed</option>
</select><br>
<input type="hidden" name="index" value="{{ index }}" />
<input type="hidden" name="t_id" value="{{ task_obj.key.id()}}"/>
<input type="hidden" name="f_id" value="{{ tb_clicked.key.id()}}"/>
<input type="submit" name="button" value="Edit"/>
</form>
</div>
</body>
</html>