source: src/main/resources/templates/listInstanci.html@ 4d026a5

Last change on this file since 4d026a5 was e272096, checked in by ppaunovski <paunovskipavel@…>, 9 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.9 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">Vozac</th>
13 <th scope="col">Avtobus</th>
14 <th scope="col">Linija</th>
15 <th scope="col">Pravec</th>
16 <th scope="col">Start date</th>
17 <th scope="col">End date</th>
18 <th scope="col"></th>
19 <th scope="col"></th>
20 <th scope="col"></th>
21 </tr>
22 </thead>
23 <tbody>
24 <tr th:each="inl : ${inls}" class="product">
25 <td >
26 <a th:text="${inl.inlId}" th:href="@{'/instanca-na-linija/{id}'(id= ${inl.inlId})}"></a>
27 </td>
28 <td th:text="${inl.korisnikByVozacKId.kIme}"></td>
29 <td th:text="${inl.avtobusByARegistracija.aRegistracija}"></td>
30 <td th:text="${inl.linijaByLiId.liIme}"></td>
31 <td th:text="${inl.linijaByLiId.liPravec}"></td>
32 <td th:text="${inl.inlDatumStart.toString()}"></td>
33 <td th:text="${inl.inlDatumEnd != null} ? ${inl.inlDatumEnd.toString()} : 'Still active'"></td>
34
35 <td class="text-right">
36<!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
37<!-- <form th:action="@{'/products/delete/{id}' (id=${vozenje.vozenjeId})}"-->
38<!-- th:method="DELETE">-->
39<!-- <button type="submit"-->
40<!-- class="btn btn-sm btn-danger delete-product">-->
41<!-- <i class="fas fa-trash-alt"></i> Delete-->
42<!-- </button>-->
43<!-- </form>-->
44<!-- </th:block>-->
45 </td>
46 <td>
47<!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
48<!-- <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"-->
49<!-- class="btn btn-sm btn-info edit-product">-->
50<!-- <i class="fas fa-edit"></i> Edit-->
51<!-- </a>-->
52<!-- </th:block>-->
53 </td>
54 <td>
55 <form th:action="@{'/kontrola/start-for/{id}'(id=${inl.inlId})}"
56 th:method="GET">
57 <button type="submit" class="btn btn-sm btn-success add-to-cart">
58 Kontrola
59 </button>
60 </form>
61 </td>
62 </tr>
63 </tbody>
64 </table>
65 </div>
66 </div>
67 <div class="col mb-3">
68 <div class="row">
69 <div class="col-sm-12 col-md-12">
70 <a href="/instanca-na-linija/start" class="btn btn-block btn-dark add-product-btn">
71 Start instanca
72 </a>
73 </div>
74 </div>
75 </div>
76 </div>
77 </div>
78</div>
79
80
Note: See TracBrowser for help on using the repository browser.