source: src/main/resources/templates/listBileti.html@ b101b69

Last change on this file since b101b69 was b101b69, checked in by ppaunovski <paunovskipavel@…>, 6 months ago

initial classes, no inheritance yet v2

  • Property mode set to 100644
File size: 3.5 KB
Line 
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">Status</th>
18 <th scope="col">Korisnik Ime</th>
19 <th scope="col">Tip Bilet</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="bilet : ${bileti}" class="product">
27 <td th:text="${bilet.bId}"></td>
28 <td th:text="${bilet.bStatus.name()}"></td>
29 <td th:text="${bilet.korisnikByPatnikKId.kIme}"></td>
30 <td th:text="${bilet.tipbiletByTbId.tbIme}"></td>
31
32 <td class="text-right">
33 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
34 <form th:action="@{'/products/delete/{id}' (id=${bilet.bId})}"
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=${bilet.bId})}"
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=${bilet.bId})}"
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
Note: See TracBrowser for help on using the repository browser.