source: src/main/resources/templates/listInstanci.html@ bde8b13

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