|
1 | 1 | <html> |
2 | 2 | <head> |
3 | 3 | <title>{{t}}</title> |
| 4 | + <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='assets/style.css')}}" > |
4 | 5 | </head> |
5 | | - <style> |
6 | | - h1{ |
7 | | - font-family:"Arial Black", Gadget, sans-serif; |
8 | | - } |
9 | | - body{ |
10 | | - background-color:white; |
11 | | - } |
12 | | - </style> |
13 | 6 | <body> |
14 | 7 | <h1>{{h}}</h1> |
15 | 8 | <hr> |
16 | | - <h3>Update tasks with a reference</h3> |
| 9 | + <h3>Update Task</h3> |
17 | 10 | <form action="/action3" method="POST"> |
18 | 11 | {% 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> |
21 | 14 |
|
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> |
36 | 33 | {% 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> |
39 | 37 | </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> |
41 | 41 | </body> |
42 | 42 | </html> |
0 commit comments