main
Last change
on this file was cab5859, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago |
Added all advanced reports, added bootstrap for every template
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[7d43957] | 1 | <div xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
|
---|
| 2 | >
|
---|
[feffc2f] | 3 | <main>
|
---|
[9dcbf44] | 4 | <h1 class="mt-3 mb-3">Сите производи</h1>
|
---|
[60de3eb] | 5 | <form th:action="@{/filtered}">
|
---|
[9dcbf44] | 6 | <label for="cartype"></label><select id="cartype" class="form-control w-25 d-inline mr-3" required name="cartype">
|
---|
[60de3eb] | 7 | <option th:each="car : ${cars}"
|
---|
| 8 | th:text="${car.getCartype()}"
|
---|
| 9 | th:value="${car.getCartype()}">
|
---|
| 10 | </option>
|
---|
| 11 | </select>
|
---|
[9dcbf44] | 12 | <label for="category"></label><select id="category" class="form-control w-25 d-inline mr-3" required name="category">
|
---|
[60de3eb] | 13 | <option th:each="cat : ${categories}"
|
---|
| 14 | th:text="${cat.getCname()}"
|
---|
| 15 | th:value="${cat.getCname()}">
|
---|
| 16 | </option>
|
---|
| 17 | </select>
|
---|
[9dcbf44] | 18 | <button class="btn btn-lg btn-block btn-primary w-25 d-inline" type="submit">Филтрирај</button>
|
---|
[60de3eb] | 19 | </form>
|
---|
[9dcbf44] | 20 | <table class="table table-bordered mt-4">
|
---|
| 21 | <thead class="thead-dark">
|
---|
[feffc2f] | 22 | <tr>
|
---|
[9dcbf44] | 23 | <th scope="col">Име</th>
|
---|
| 24 | <th scope="col">Производител</th>
|
---|
| 25 | <th scope="col">Детали</th>
|
---|
[feffc2f] | 26 | </tr>
|
---|
| 27 | </thead>
|
---|
| 28 | <tbody>
|
---|
| 29 | <tr th:each="part : ${parts}">
|
---|
| 30 | <td th:text="${part.getName()}"></td>
|
---|
| 31 | <td th:text="${part.getManufacturer().getName()}"></td>
|
---|
| 32 | <td>
|
---|
| 33 | <form th:action="@{'/part/{id}' (id=${part.getId()}) }">
|
---|
[9dcbf44] | 34 | <button class="btn btn-primary btn-block btn-lg w-50" type="submit">Детали</button>
|
---|
[feffc2f] | 35 | </form>
|
---|
| 36 | </td>
|
---|
| 37 | </tr>
|
---|
| 38 | </tbody>
|
---|
| 39 | </table>
|
---|
| 40 | </main>
|
---|
[60de3eb] | 41 | </div> |
---|
Note:
See
TracBrowser
for help on using the repository browser.