Skip to content

Commit 8b63814

Browse files
committed
fix: apply styling for update view
1 parent b8fe863 commit 8b63814

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

templates/update.html

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
<html>
22
<head>
33
<title>{{t}}</title>
4+
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='assets/style.css')}}" >
45
</head>
5-
<style>
6-
h1{
7-
font-family:"Arial Black", Gadget, sans-serif;
8-
}
9-
body{
10-
background-color:white;
11-
}
12-
</style>
136
<body>
147
<h1>{{h}}</h1>
158
<hr>
16-
<h3>Update tasks with a reference</h3>
9+
<h3>Update Task</h3>
1710
<form action="/action3" method="POST">
1811
{% for task in tasks %}
19-
Unique Object ID : {{ task['_id'] }}<br/>
20-
<input type="text" name="_id" value="{{ task['_id'] }}" hidden>
12+
<p><strong>Unique Object ID:</strong> {{ task['_id'] }}</p>
13+
<input type="text" name="_id" value="{{ task['_id'] }}" hidden>
2114

22-
<table>
23-
<tr>
24-
<td>Task Name</td><td> : </td><td><input type="text" name="name" value="{{ task['name'] }}" placeholder="{{ task['name'] }}"></td>
25-
</tr>
26-
<tr>
27-
<td>Description</td><td> : </td><td><textarea type="text" name="desc" rows=3 cols=30 placeholder="{{ task['desc'] }}"> {{ task['desc'] }} </textarea></td>
28-
</tr>
29-
<tr>
30-
<td>Date</td><td> : </td><td><input type="text" name="date" value="{{ task['date'] }}" placeholder="{{ task['date'] }}"></td>
31-
</tr>
32-
<tr>
33-
<td>Priority</td><td> : </td><td><input type="text" name="pr" value="{{ task['pr'] }}" placeholder="{{ task['pr'] }}"></td>
34-
</tr>
35-
</table>
15+
<table class="none">
16+
<tr>
17+
<td><label>Task Name</label></td>
18+
<td><input type="text" name="name" value="{{ task['name'] }}" placeholder="{{ task['name'] }}"></td>
19+
</tr>
20+
<tr>
21+
<td><label>Description</label></td>
22+
<td><textarea name="desc" rows="3" cols="30" placeholder="{{ task['desc'] }}">{{ task['desc'] }}</textarea></td>
23+
</tr>
24+
<tr>
25+
<td><label>Date</label></td>
26+
<td><input type="text" name="date" value="{{ task['date'] }}" placeholder="{{ task['date'] }}"></td>
27+
</tr>
28+
<tr>
29+
<td><label>Priority</label></td>
30+
<td><input type="text" name="pr" value="{{ task['pr'] }}" placeholder="{{ task['pr'] }}"></td>
31+
</tr>
32+
</table>
3633
{% endfor %}
37-
<button type="submit"> Update Task </button>
38-
<br/>
34+
<div style="text-align:center;margin-top:16px">
35+
<button type="submit">Update Task</button>
36+
</div>
3937
</form>
40-
<a href="/">Return to TaskList</a>
38+
<div style="text-align:center;margin-top:16px">
39+
<a href="/" style="color:#4CAF50;text-decoration:none;font-weight:600">← Return to TaskList</a>
40+
</div>
4141
</body>
4242
</html>

0 commit comments

Comments
 (0)