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

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

All 3 main use cases implemented.

  1. Starting a commute
  2. Writing a ticket
  3. Starting an instance of a Bus Line
  • Property mode set to 100644
File size: 3.0 KB
Line 
1<div xmlns:th="http://www.thymeleaf.org">
2
3
4 <div class="container mb-4">
5 <div class="row">
6 <div class="col-12" >
7 <div class="table-responsive">
8 <table class="table table-striped">
9 <thead>
10 <tr>
11 <th scope="col">#</th>
12 <th scope="col">Status</th>
13 <th scope="col">Korisnik Ime</th>
14 <th scope="col">Tip Bilet</th>
15 <th scope="col"></th>
16 <th scope="col"></th>
17 <th scope="col"></th>
18 </tr>
19 </thead>
20 <tbody>
21 <tr th:each="bilet : ${bileti}" class="product">
22 <td th:text="${bilet.bId}"></td>
23 <td th:text="${bilet.bStatus.name()}"></td>
24 <td th:text="${bilet.korisnikByPatnikKId.kIme}"></td>
25 <td th:text="${bilet.tipbiletByTbId.tbIme}"></td>
26
27 <td class="text-right">
28<!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
29<!-- <form th:action="@{'/products/delete/{id}' (id=${bilet.bId})}"-->
30<!-- th:method="DELETE">-->
31<!-- <button type="submit"-->
32<!-- class="btn btn-sm btn-danger delete-product">-->
33<!-- <i class="fas fa-trash-alt"></i> Delete-->
34<!-- </button>-->
35<!-- </form>-->
36<!-- </th:block>-->
37 </td>
38 <td>
39<!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
40<!-- <a th:href="@{'/products/edit-form/{id}' (id=${bilet.bId})}"-->
41<!-- class="btn btn-sm btn-info edit-product">-->
42<!-- <i class="fas fa-edit"></i> Edit-->
43<!-- </a>-->
44<!-- </th:block>-->
45 </td>
46 <td>
47
48 </td>
49 </tr>
50 </tbody>
51 </table>
52 </div>
53 </div>
54 <div class="col mb-3">
55 <div class="row">
56 <div class="col-sm-12 col-md-12">
57 <a href="/bilet/kupi" class="btn btn-block btn-dark add-product-btn">
58 Kupi bilet
59 </a>
60 </div>
61 </div>
62 </div>
63 </div>
64 </div>
65</div>
66
67
Note: See TracBrowser for help on using the repository browser.