[bde8b13] | 1 | <div xmlns:th="http://www.thymeleaf.org">
|
---|
| 2 | <section class="jumbotron text-center">
|
---|
| 3 | <div class="container">
|
---|
| 4 | <h1 class="jumbotron-heading">WEB PROGRAMMING SHOP</h1>
|
---|
| 5 | <h3 class="jumbotron-heading">All products</h3>
|
---|
| 6 | </div>
|
---|
| 7 | </section>
|
---|
| 8 |
|
---|
| 9 | <div class="container mb-4">
|
---|
| 10 | <div class="row">
|
---|
| 11 | <div class="col-12" >
|
---|
| 12 | <div class="table-responsive">
|
---|
| 13 | <table class="table table-striped">
|
---|
| 14 | <thead>
|
---|
| 15 | <tr>
|
---|
| 16 | <th scope="col">#</th>
|
---|
| 17 | <th scope="col">Iznos</th>
|
---|
| 18 | <th scope="col">Plateno</th>
|
---|
| 19 | <th scope="col">Dokument</th>
|
---|
| 20 | <th scope="col"></th>
|
---|
| 21 | <th scope="col"></th>
|
---|
| 22 | <th scope="col"></th>
|
---|
| 23 | </tr>
|
---|
| 24 | </thead>
|
---|
| 25 | <tbody>
|
---|
| 26 | <tr th:each="kazna : ${kazni}" class="product">
|
---|
| 27 | <td th:text="${kazna.kzId}"></td>
|
---|
| 28 | <td th:text="${kazna.kzIznos}"></td>
|
---|
| 29 | <td th:text="${kazna.kzPlateno}"></td>
|
---|
| 30 | <td th:text="${kazna.kzDokument}"></td>
|
---|
| 31 |
|
---|
| 32 | <td class="text-right">
|
---|
| 33 | <th:block sec:authorize="hasRole('ROLE_ADMIN')">
|
---|
| 34 | <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"
|
---|
| 35 | th:method="DELETE">
|
---|
| 36 | <button type="submit"
|
---|
| 37 | class="btn btn-sm btn-danger delete-product">
|
---|
| 38 | <i class="fas fa-trash-alt"></i> Delete
|
---|
| 39 | </button>
|
---|
| 40 | </form>
|
---|
| 41 | </th:block>
|
---|
| 42 | </td>
|
---|
| 43 | <td>
|
---|
| 44 | <th:block sec:authorize="hasRole('ROLE_ADMIN')">
|
---|
| 45 | <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"
|
---|
| 46 | class="btn btn-sm btn-info edit-product">
|
---|
| 47 | <i class="fas fa-edit"></i> Edit
|
---|
| 48 | </a>
|
---|
| 49 | </th:block>
|
---|
| 50 | </td>
|
---|
| 51 | <td>
|
---|
| 52 | <form th:action="@{'/shopping-cart/add-product/{id}' (id=${kazna.kzId})}"
|
---|
| 53 | th:method="POST">
|
---|
| 54 | <button type="submit" class="btn btn-sm btn-success add-to-cart">
|
---|
| 55 | <i class="fas fa-shopping-cart"></i> Add to cart
|
---|
| 56 | </button>
|
---|
| 57 | </form>
|
---|
| 58 | </td>
|
---|
| 59 | </tr>
|
---|
| 60 | </tbody>
|
---|
| 61 | </table>
|
---|
| 62 | </div>
|
---|
| 63 | </div>
|
---|
| 64 | <div class="col mb-3">
|
---|
| 65 | <div class="row">
|
---|
| 66 | <div class="col-sm-12 col-md-12">
|
---|
| 67 | <a href="/bilet/kupi" class="btn btn-block btn-dark add-product-btn">
|
---|
| 68 | Kupi bilet
|
---|
| 69 | </a>
|
---|
| 70 | </div>
|
---|
| 71 | </div>
|
---|
| 72 | </div>
|
---|
| 73 | </div>
|
---|
| 74 | </div>
|
---|
| 75 | </div>
|
---|
| 76 |
|
---|
| 77 |
|
---|