[bdc68e0] | 1 | <!DOCTYPE html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <meta charset="UTF-8">
|
---|
| 5 |
|
---|
| 6 | <!-- Bootstrap CSS -->
|
---|
| 7 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
---|
| 8 | <title>Rating</title>
|
---|
| 9 | </head>
|
---|
| 10 | <style>
|
---|
| 11 | .photo{
|
---|
| 12 | width:300px;
|
---|
| 13 | height:60px;
|
---|
| 14 | }
|
---|
| 15 | .nv{
|
---|
| 16 | background-color: rgba(240, 248, 255, .5);
|
---|
| 17 | margin-top: 20px;
|
---|
| 18 | }
|
---|
| 19 | tbody{
|
---|
| 20 | background-color: aliceblue;
|
---|
| 21 | }
|
---|
| 22 | body {
|
---|
| 23 | background-color: #a0a5e9;
|
---|
| 24 | }
|
---|
| 25 | .btn0{
|
---|
| 26 | background-color: blueviolet;
|
---|
| 27 | border-radius: 8px;
|
---|
| 28 | border-style: none;
|
---|
| 29 | box-sizing: border-box;
|
---|
| 30 | color: #FFFFFF;
|
---|
| 31 | cursor: pointer;
|
---|
| 32 | display: inline-block;
|
---|
| 33 | font-family: Montserrat;
|
---|
| 34 | font-size: 14px;
|
---|
| 35 | font-weight: bold;
|
---|
| 36 | height: 40px;
|
---|
| 37 | line-height: 20px;
|
---|
| 38 | list-style: none;
|
---|
| 39 | margin: 0;
|
---|
| 40 | outline: none;
|
---|
| 41 | padding: 10px 16px;
|
---|
| 42 | position: relative;
|
---|
| 43 | text-align: center;
|
---|
| 44 | text-decoration: none;
|
---|
| 45 | transition: color 100ms;
|
---|
| 46 | vertical-align: baseline;
|
---|
| 47 | user-select: none;
|
---|
| 48 | -webkit-user-select: none;
|
---|
| 49 | touch-action: manipulation;
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | .btn0:hover,
|
---|
| 53 | .btn0:focus {
|
---|
| 54 | background-color: cornflowerblue;
|
---|
| 55 | }
|
---|
| 56 | .btn1{
|
---|
| 57 | border-radius: 8px;
|
---|
| 58 | border-style: none;
|
---|
| 59 | box-sizing: border-box;
|
---|
| 60 | color: #FFFFFF;
|
---|
| 61 | cursor: pointer;
|
---|
| 62 | display: inline-block;
|
---|
| 63 | font-family: Montserrat;
|
---|
| 64 | font-size: 14px;
|
---|
| 65 | font-weight: bold;
|
---|
| 66 | height: 40px;
|
---|
| 67 | line-height: 20px;
|
---|
| 68 | list-style: none;
|
---|
| 69 | margin: 0;
|
---|
| 70 | outline: none;
|
---|
| 71 | padding: 10px 16px;
|
---|
| 72 | position: relative;
|
---|
| 73 | text-align: center;
|
---|
| 74 | text-decoration: none;
|
---|
| 75 | transition: color 100ms;
|
---|
| 76 | vertical-align: baseline;
|
---|
| 77 | user-select: none;
|
---|
| 78 | -webkit-user-select: none;
|
---|
| 79 | touch-action: manipulation;
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 | .btn1:hover,
|
---|
| 83 | .btn1:focus {
|
---|
| 84 | background-color: darkslateblue;
|
---|
| 85 | }
|
---|
| 86 | a {
|
---|
| 87 | text-decoration: none;
|
---|
| 88 | font-family: Montserrat;
|
---|
| 89 | font-weight: bold;
|
---|
| 90 | }
|
---|
| 91 | .btn3{
|
---|
| 92 | background-color: blueviolet;
|
---|
| 93 | border-radius: 8px;
|
---|
| 94 | border-style: none;
|
---|
| 95 | box-sizing: border-box;
|
---|
| 96 | color: #FFFFFF;
|
---|
| 97 | cursor: pointer;
|
---|
| 98 | display: inline-block;
|
---|
| 99 | font-family: Montserrat;
|
---|
| 100 | font-size: 14px;
|
---|
| 101 | font-weight: bold;
|
---|
| 102 | height: 40px;
|
---|
| 103 | line-height: 20px;
|
---|
| 104 | list-style: none;
|
---|
| 105 | margin: 0;
|
---|
| 106 | outline: none;
|
---|
| 107 | padding: 10px 16px;
|
---|
| 108 | position: relative;
|
---|
| 109 | text-align: center;
|
---|
| 110 | text-decoration: none;
|
---|
| 111 | transition: color 100ms;
|
---|
| 112 | vertical-align: baseline;
|
---|
| 113 | user-select: none;
|
---|
| 114 | -webkit-user-select: none;
|
---|
| 115 | touch-action: manipulation;
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 | .btn3:hover,
|
---|
| 119 | .btn3:focus {
|
---|
| 120 | background-color: cornflowerblue;
|
---|
| 121 | }
|
---|
| 122 | </style>
|
---|
| 123 | <body>
|
---|
| 124 | <nav class="navbar navbar-expand-lg nv">
|
---|
| 125 | <div class="container">
|
---|
| 126 | <a class="navbar-brand" href="#"><img src="../../images/logo.png" class="photo" alt="logo"></a>
|
---|
| 127 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
---|
| 128 | <span class="navbar-toggler-icon"><i class="fa-solid fa-bars"></i></span>
|
---|
| 129 | </button>
|
---|
| 130 | <div class="collapse navbar-collapse" id="navbarSupportedContent">
|
---|
| 131 | <ul class="navbar-nav m-auto mb-2 mb-lg-0">
|
---|
| 132 | <li class="nav-item">
|
---|
| 133 | <a class="nav-link" href="/home">Home</a>
|
---|
| 134 | </li>
|
---|
| 135 | <li class="nav-item">
|
---|
| 136 | <a class="nav-link" href="/events">Настани</a>
|
---|
| 137 | </li>
|
---|
| 138 | </ul>
|
---|
| 139 | <form class="d-flex">
|
---|
| 140 | <th:block th:if="${session.user == null}">
|
---|
| 141 | <button class="btn0" >
|
---|
| 142 | <a type="button" href="/userRegister" style="color: black">Register</a>
|
---|
| 143 | </button>
|
---|
| 144 | </th:block>
|
---|
| 145 | <th:block th:if="${session.user == null}">
|
---|
| 146 | <button class="btn1" >
|
---|
| 147 | <a type="button" href="/userLogin" style="color: darkblue">Login</a>
|
---|
| 148 | </button>
|
---|
| 149 | </th:block>
|
---|
| 150 | <th:block th:if="${session.user != null}">
|
---|
| 151 | <button class="btn1" >
|
---|
| 152 | <a type="button" href="/userLogout" style="color: darkblue">Logout</a>
|
---|
| 153 | </button>
|
---|
| 154 | </th:block>
|
---|
| 155 | <th:block th:if="${session.user != null}">
|
---|
| 156 | <button class="btn0" href="#">
|
---|
| 157 | <th:block th:if="${session.user != null}"
|
---|
| 158 | th:text="${session.user.getUsername()}"></th:block>
|
---|
| 159 | </button>
|
---|
| 160 | </th:block>
|
---|
| 161 |
|
---|
| 162 | </form>
|
---|
| 163 | </div>
|
---|
| 164 | </div>
|
---|
| 165 | </nav>
|
---|
| 166 | <section class="Form py-1 RateSection">
|
---|
| 167 | <div class="container py-5">
|
---|
| 168 | <div class="row g-0 rowContainer">
|
---|
| 169 |
|
---|
| 170 | <div class="col-lg-6 px-5 pt-5 leftSide">
|
---|
| 171 | <!--<input type="text" name="customerId" th:value="${session.user.getId()}">-->
|
---|
| 172 | <h4>Оценете го уметникот:</h4>
|
---|
| 173 | <h3 th:text="${artist.getFullName()}"></h3>
|
---|
| 174 | <div class="table-responsive">
|
---|
| 175 | <table class="table table-striped">
|
---|
| 176 | <thead>
|
---|
| 177 | <tr>
|
---|
| 178 | <th scope="col">Customer name</th>
|
---|
| 179 | <th scope="col">Customer rating</th>
|
---|
| 180 | <th scope="col">Customer comment</th>
|
---|
| 181 | </tr>
|
---|
| 182 | </thead>
|
---|
| 183 | <tbody>
|
---|
| 184 | <tr th:each="review : ${reviews}" class="product">
|
---|
| 185 | <td th:text="${review.getCustomer().getFullName()}">
|
---|
| 186 | <td th:text="${review.getRating()}"></td>
|
---|
| 187 | <td th:text="${review.getContent()}"></td>
|
---|
| 188 | </tr>
|
---|
| 189 | </tbody>
|
---|
| 190 | </table>
|
---|
| 191 | </div>
|
---|
| 192 | <form th:method="post" th:action="@{'/artists/{id}' (id=${artist.getId()})}">
|
---|
| 193 | <div class="form-row py-3">
|
---|
| 194 | <div class="col-lg-12">
|
---|
| 195 | <select name="rating" class="formCSS form-select form-select-lg mb-3">
|
---|
| 196 | <option value="1">1</option>
|
---|
| 197 | <option value="2">2</option>
|
---|
| 198 | <option value="3">3</option>
|
---|
| 199 | <option value="4">4</option>
|
---|
| 200 | <option value="5">5</option>
|
---|
| 201 | <option value="6">6</option>
|
---|
| 202 | <option value="7">7</option>
|
---|
| 203 | <option value="8">8</option>
|
---|
| 204 | <option value="9">9</option>
|
---|
| 205 | <option selected value="10">10</option>
|
---|
| 206 | </select>
|
---|
| 207 |
|
---|
| 208 | </div>
|
---|
| 209 | </div>
|
---|
| 210 |
|
---|
| 211 | <h4>Ваш коментар:</h4>
|
---|
| 212 |
|
---|
| 213 | <div class="form-row">
|
---|
| 214 | <div class="col-lg-12">
|
---|
| 215 | <textarea name="content" class="form-control" id="textInForm" rows="3"></textarea>
|
---|
| 216 | </div>
|
---|
| 217 | </div>
|
---|
| 218 |
|
---|
| 219 | <div class="form-row py-3">
|
---|
| 220 | <div class="col-lg-12 text-center">
|
---|
| 221 | <button type="submit" class="btn3">Додај реценизија</button>
|
---|
| 222 | </div>
|
---|
| 223 | </div>
|
---|
| 224 | </form>
|
---|
| 225 | </div>
|
---|
| 226 | <div class="col-lg-6">
|
---|
| 227 | <img src="../../images/forRate.jpg" class="img-fluid" id="imgForRate" alt="">
|
---|
| 228 | </div>
|
---|
| 229 | </div>
|
---|
| 230 | </div>
|
---|
| 231 | </section>
|
---|
| 232 | </body>
|
---|
| 233 | </html> |
---|