source: src/main/resources/templates/listVozenja.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.6 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
[e272096]9 <form method="get" action="/vozenje">
10 <select name="status">
11 <option th:each="status : ${vozStatus}" th:value="${status}" th:text="${status.name()}"></option>
12 </select>
13
14 <input type="submit" value="Search">
15 </form>
16
[bde8b13]17 <div class="container mb-4">
18 <div class="row">
19 <div class="col-12" >
20 <div class="table-responsive">
21 <table class="table table-striped">
22 <thead>
23 <tr>
24 <th scope="col">#</th>
25 <th scope="col">Status</th>
26 <th scope="col">Korisnik Ime</th>
27 <th scope="col">Bilet Id</th>
28 <th scope="col">Tip Bilet</th>
29 <th scope="col"></th>
30 <th scope="col"></th>
31 <th scope="col"></th>
32 </tr>
33 </thead>
34 <tbody>
35 <tr th:each="vozenje : ${vozenja}" class="product">
36 <td th:text="${vozenje.vozenjeId}"></td>
37 <td th:text="${vozenje.vozenjeStatus.name()}"></td>
38 <td th:text="${vozenje.korisnikByPatnikKId.kIme}"></td>
39 <td th:text="${vozenje.biletByBId.bId}"></td>
40 <td th:text="${vozenje.biletByBId.tipbiletByTbId.tbIme}"></td>
41
42 <td class="text-right">
[e272096]43 <th:block >
44 <form th:action="@{'/vozenje/{id}/end' (id=${vozenje.vozenjeId})}"
45 th:hidden="${vozenje.vozenjeStatus.name().equals('FINISHED')} ? 'true' : 'false'"
46 th:method="GET">
[bde8b13]47 <button type="submit"
48 class="btn btn-sm btn-danger delete-product">
[e272096]49 <i class="fas fa-trash-alt"></i> End
[bde8b13]50 </button>
51 </form>
52 </th:block>
53 </td>
54 <td>
[e272096]55<!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
56<!-- <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"-->
57<!-- class="btn btn-sm btn-info edit-product">-->
58<!-- <i class="fas fa-edit"></i> Edit-->
59<!-- </a>-->
60<!-- </th:block>-->
[bde8b13]61 </td>
62 <td>
[e272096]63
[bde8b13]64 </td>
65 </tr>
66 </tbody>
67 </table>
68 </div>
69 </div>
70 <div class="col mb-3">
71 <div class="row">
72 <div class="col-sm-12 col-md-12">
73 <a href="/vozenje/start" class="btn btn-block btn-dark add-product-btn">
74 Start vozenje
75 </a>
76 </div>
77 </div>
78 </div>
79 </div>
80 </div>
81</div>
82
83
Note: See TracBrowser for help on using the repository browser.