1 | <div class="container" xmlns:th="http://www.thymeleaf.org">
|
---|
2 | <form class="form-signin mt-xl-5" method="post" th:action="@{'/instanca-na-linija/{id}/end'(id=${inl.inlId})}">
|
---|
3 | <h2 class="form-signin-heading">Instanca na linija</h2>
|
---|
4 |
|
---|
5 | <p>
|
---|
6 | <label for="aRegistracija" class="sr-only">Avtobus</label>
|
---|
7 | <input type="text"
|
---|
8 | class="form-controll"
|
---|
9 | th:value="${inl.avtobusByARegistracija.aRegistracija} "
|
---|
10 | disabled
|
---|
11 | name="aRegistracija"
|
---|
12 | id="aRegistracija"
|
---|
13 | >
|
---|
14 | </p>
|
---|
15 |
|
---|
16 | <p>
|
---|
17 | <label for="liId" class="sr-only">Linija</label>
|
---|
18 | <select id="liId" name="liId" class="form-control">
|
---|
19 | <option th:value="${inl.linijaByLiId.liId}"
|
---|
20 | th:text="${inl.linijaByLiId.liIme} + ' - ' + ${inl.linijaByLiId.liPravec}"
|
---|
21 | selected
|
---|
22 | disabled></option>
|
---|
23 | </select>
|
---|
24 |
|
---|
25 |
|
---|
26 | </p>
|
---|
27 |
|
---|
28 |
|
---|
29 | <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
|
---|
30 |
|
---|
31 | <div class="row">
|
---|
32 | <div class="col-md-3">
|
---|
33 | <button th:disabled="${inl.inlDatumEnd != null} ? 'true' : 'false'"
|
---|
34 | id="submit"
|
---|
35 | class="btn btn-lg btn-primary btn-block"
|
---|
36 | type="submit"
|
---|
37 | th:text="${inl.inlDatumEnd != null} ? 'Already ended' : 'End'"></button>
|
---|
38 | </div>
|
---|
39 | </div>
|
---|
40 | </form>
|
---|
41 |
|
---|
42 | <div xmlns:th="http://www.thymeleaf.org">
|
---|
43 |
|
---|
44 | <div class="container mb-4">
|
---|
45 | <div class="row">
|
---|
46 | <div class="col-12" >
|
---|
47 | <div class="table-responsive">
|
---|
48 | <table class="table table-striped">
|
---|
49 | <thead>
|
---|
50 | <tr>
|
---|
51 | <th scope="col">#</th>
|
---|
52 | <th scope="col">Timestamp</th>
|
---|
53 | <th scope="col">Kondukter</th>
|
---|
54 | <th scope="col"></th>
|
---|
55 | <th scope="col"></th>
|
---|
56 | <th scope="col"></th>
|
---|
57 | </tr>
|
---|
58 | </thead>
|
---|
59 | <tbody>
|
---|
60 | <tr th:each="kontrola : ${kontroli}" class="product">
|
---|
61 | <td >
|
---|
62 | <a th:text="${kontrola.kontrolaId}" th:href="@{'/kontrola/{id}'(id= ${kontrola.kontrolaId})}"></a>
|
---|
63 | </td>
|
---|
64 | <td th:text="${kontrola.kontrolaDatum}"></td>
|
---|
65 | <td th:text="${kontrola.korisnikByKondukterKId.kIme}"></td>
|
---|
66 |
|
---|
67 | <td class="text-right">
|
---|
68 | <!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
|
---|
69 | <!-- <form th:action="@{'/products/delete/{id}' (id=${vozenje.vozenjeId})}"-->
|
---|
70 | <!-- th:method="DELETE">-->
|
---|
71 | <!-- <button type="submit"-->
|
---|
72 | <!-- class="btn btn-sm btn-danger delete-product">-->
|
---|
73 | <!-- <i class="fas fa-trash-alt"></i> Delete-->
|
---|
74 | <!-- </button>-->
|
---|
75 | <!-- </form>-->
|
---|
76 | <!-- </th:block>-->
|
---|
77 | </td>
|
---|
78 | <td>
|
---|
79 | <!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
|
---|
80 | <!-- <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"-->
|
---|
81 | <!-- class="btn btn-sm btn-info edit-product">-->
|
---|
82 | <!-- <i class="fas fa-edit"></i> Edit-->
|
---|
83 | <!-- </a>-->
|
---|
84 | <!-- </th:block>-->
|
---|
85 | </td>
|
---|
86 | <td>
|
---|
87 | <!-- <form th:action="@{'/kontrola/start-for/{id}'(id=${inl.inlId})}"-->
|
---|
88 | <!-- th:method="GET">-->
|
---|
89 | <!-- <button type="submit" class="btn btn-sm btn-success add-to-cart">-->
|
---|
90 | <!-- <i class="fas fa-shopping-cart"></i> Kontrola-->
|
---|
91 | <!-- </button>-->
|
---|
92 | <!-- </form>-->
|
---|
93 | </td>
|
---|
94 | </tr>
|
---|
95 | </tbody>
|
---|
96 | </table>
|
---|
97 | </div>
|
---|
98 | </div>
|
---|
99 | <div class="col mb-3">
|
---|
100 | <div class="row">
|
---|
101 | <div class="col-sm-12 col-md-12">
|
---|
102 | <a href="/instanca-na-linija/start" class="btn btn-block btn-dark add-product-btn">
|
---|
103 | Start instanca
|
---|
104 | </a>
|
---|
105 | </div>
|
---|
106 | </div>
|
---|
107 | </div>
|
---|
108 | </div>
|
---|
109 | </div>
|
---|
110 | </div>
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 | </div>
|
---|
115 |
|
---|