1 | <!doctype html>
|
---|
2 | <html lang="en" xmlns:th="http://www.thymeleaf.org">
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8">
|
---|
5 | <meta name="viewport" content="width=device-width, initial-scale=1">
|
---|
6 | <title>Task Page</title>
|
---|
7 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
|
---|
8 | integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
---|
9 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
---|
10 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
---|
11 | <style>
|
---|
12 | /* Custom CSS for star rating */
|
---|
13 | .rating {
|
---|
14 | display: inline-block;
|
---|
15 | unicode-bidi: bidi-override;
|
---|
16 | color: #888;
|
---|
17 | font-size: 25px;
|
---|
18 | font-size: 1.25rem;
|
---|
19 | }
|
---|
20 |
|
---|
21 | .rating > span {
|
---|
22 | display: inline-block;
|
---|
23 | position: relative;
|
---|
24 | width: 1.1em;
|
---|
25 | }
|
---|
26 |
|
---|
27 | .rating > span:hover:before,
|
---|
28 | .rating > span:hover ~ span:before {
|
---|
29 | content: "\2605";
|
---|
30 | position: absolute;
|
---|
31 | }
|
---|
32 |
|
---|
33 | .rating > span:hover:before {
|
---|
34 | color: gold;
|
---|
35 | }
|
---|
36 |
|
---|
37 | .rating > input {
|
---|
38 | display: none;
|
---|
39 | }
|
---|
40 |
|
---|
41 | .rating > label {
|
---|
42 | color: #888;
|
---|
43 | float: right;
|
---|
44 | }
|
---|
45 |
|
---|
46 | .rating > input:checked ~ label,
|
---|
47 | .rating:not(:checked) > label:hover,
|
---|
48 | .rating:not(:checked) > label:hover ~ label {
|
---|
49 | color: gold;
|
---|
50 | }
|
---|
51 |
|
---|
52 | .rating > input:checked + label:hover,
|
---|
53 | .rating > input:checked ~ label:hover,
|
---|
54 | .rating > label:hover ~ input:checked ~ label,
|
---|
55 | .rating > input:checked ~ label:hover ~ label {
|
---|
56 | color: #ffdd44;
|
---|
57 | }
|
---|
58 | </style>
|
---|
59 | </head>
|
---|
60 | </head>
|
---|
61 | <body>
|
---|
62 |
|
---|
63 | <div th:insert="layout/navbar.html :: navbar"></div>
|
---|
64 |
|
---|
65 |
|
---|
66 | <div class="container d-flex justify-content-center align-items-center vh-100">
|
---|
67 | <div class="card">
|
---|
68 | <di class="card-body">
|
---|
69 | <form method="post" action="/add/task" >
|
---|
70 |
|
---|
71 | <div class="row mb-3">
|
---|
72 | <label for="name" class="col-sm-4 col-form-label">Enter task name</label>
|
---|
73 | <div class="col-sm-8">
|
---|
74 | <input type="text" class="form-control" id="name" name="name" placeholder="Enter task name">
|
---|
75 | </div>
|
---|
76 | </div>
|
---|
77 |
|
---|
78 | <div class="row mb-3">
|
---|
79 | <label for="description" class="col-sm-4 col-form-label">Enter task description</label>
|
---|
80 | <div class="col-sm-8">
|
---|
81 | <textarea class="form-control" id="description" name="description"
|
---|
82 | placeholder="Enter task description"></textarea>
|
---|
83 | </div>
|
---|
84 | </div>
|
---|
85 |
|
---|
86 | <div class="row mb-3">
|
---|
87 | <label for="priority" class="col-sm-4 col-form-label">Priority</label>
|
---|
88 | <div class="col-sm-8">
|
---|
89 | <div class="rating">
|
---|
90 | <input type="radio" id="star5" name="priority" value="5"><label for="star5" title="5 stars">★</label>
|
---|
91 | <input type="radio" id="star4" name="priority" value="4"><label for="star4" title="4 stars">★</label>
|
---|
92 | <input type="radio" id="star3" name="priority" value="3"><label for="star3" title="3 stars">★</label>
|
---|
93 | <input type="radio" id="star2" name="priority" value="2"><label for="star2" title="2 stars">★</label>
|
---|
94 | <input type="radio" id="star1" name="priority" value="1"><label for="star1" title="1 star">★</label>
|
---|
95 | </div>
|
---|
96 | </div>
|
---|
97 | </div>
|
---|
98 |
|
---|
99 | <div class="row mb-3">
|
---|
100 | <label for="dueDate" class="col-sm-4 col-form-label">Enter date</label>
|
---|
101 | <div class="col-sm-8">
|
---|
102 | <input type="date" class="form-control" id="dueDate" name="dueDate">
|
---|
103 | </div>
|
---|
104 | </div>
|
---|
105 |
|
---|
106 | <div class="d-grid">
|
---|
107 | <button type="submit" class="btn btn-primary">Add Task</button>
|
---|
108 | </div>
|
---|
109 | </form>
|
---|
110 | </div>
|
---|
111 | </div>
|
---|
112 | </div>
|
---|
113 |
|
---|
114 | <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
|
---|
115 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
|
---|
116 |
|
---|
117 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
|
---|
118 | integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
|
---|
119 | crossorigin="anonymous"></script>
|
---|
120 |
|
---|
121 | </body>
|
---|
122 | </html>
|
---|
123 |
|
---|