Index: src/main/resources/application.properties
===================================================================
--- src/main/resources/application.properties	(revision b101b69e1e4156497c29fa60f501b18007efeab7)
+++ src/main/resources/application.properties	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -1,4 +1,4 @@
 #
-spring.datasource.url=jdbc:postgresql://localhost:9090/db_202324z_va_prj_busngo
+spring.datasource.url=jdbc:postgresql://localhost:8089/db_202324z_va_prj_busngo
 spring.datasource.username=db_202324z_va_prj_busngo_owner
 spring.datasource.password=d9f924580e7
@@ -7,10 +7,11 @@
 
 spring.datasource.hikari.connection-timeout=20000
-spring.datasource.hikari.maximum-pool-size=25
+spring.datasource.hikari.maximum-pool-size=5
 
 #spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
 spring.jpa.properties.hibernate.jdbc.non_contextual_creation=true
-spring.jpa.properties.hibernate.default_schema=project 
+spring.jpa.properties.hibernate.default_schema=project
 
 spring.jpa.hibernate.ddl-auto=validate
 spring.jpa.show-sql=true
+
Index: src/main/resources/templates/choosePostojka.html
===================================================================
--- src/main/resources/templates/choosePostojka.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/choosePostojka.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,17 @@
+<div class="container" xmlns:th="http://www.thymeleaf.org">
+    <form class="form-signin mt-xl-5" method="get" action="/vozenje/choose-postojka">
+        <h2 class="form-signin-heading">Odberete postojka na koja se naogjate</h2>
+        <p>
+            <label for="pnlId" class="sr-only">Postojka</label>
+            <select class="form-control" name="pnlId" id="pnlId">
+                <option class="form-control" th:each="postojka : ${postojki}" th:text="${postojka.postojkaByPId.pIme}" th:value="${postojka.pnlId}" ></option>
+            </select>
+
+
+        </p>
+        <div class="col-md-3">
+            <button id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Odberi</button>
+        </div>
+    </form>
+</div>
+
Index: src/main/resources/templates/endVozenje.html
===================================================================
--- src/main/resources/templates/endVozenje.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/endVozenje.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,62 @@
+<div class="container" xmlns:th="http://www.thymeleaf.org">
+    <form class="form-signin mt-xl-5" method="post" th:action="@{'/vozenje/{id}/end'(id=${vozenje.vozenjeId})}">
+        <h2 class="form-signin-heading">Start vozenje</h2>
+
+        <p>
+            <label for="pnlId" class="sr-only">Postojka</label>
+            <select   class="form-control" name="pnlId" id="pnlId">
+                <option class="form-control"
+                        th:text="${vozenje.postojkanalinijaByKacuvaPnlId.postojkaByPId.pIme}"
+                        selected
+                        disabled
+                        th:value="${vozenje.postojkanalinijaByKacuvaPnlId.pnlId} "  ></option>
+<!--                        th:selected="${postojka!= null && postojka.pnlId == pos.pnlId} ? 'true' : 'false' " -->
+<!--                        th:disabled="${postojka!= null && postojka.pnlId != pos.pnlId} ? 'true' : 'false' "  -->
+
+            </select>
+        </p>
+
+        <p >
+            <label for="instanca" class="sr-only">Instanca</label>
+            <select id="instanca" name="inlId" class="form-control">
+                <option
+                        selected
+                        disabled
+                        th:value="${vozenje.instancanalinijaByInlId.inlId}"
+                        th:text="${vozenje.instancanalinijaByInlId.linijaByLiId.liIme} + ' - ' + ${vozenje.instancanalinijaByInlId.linijaByLiId.liPravec}"></option>
+            </select>
+        </p>
+
+        <p >
+            <label for="bilet" class="sr-only">Bilet</label>
+            <select id="bilet" name="bId" class="form-control">
+                <option
+                        selected
+                        disabled
+                        th:value="${vozenje.biletByBId.bId}"
+                        th:text="${vozenje.biletByBId.tipbiletByTbId.tbIme} + ' - ' + ${vozenje.biletByBId.bStatus.name()}"></option>
+            </select>
+        </p>
+
+        <p>
+            <label for="pnlEndId" class="sr-only">Postojka Simnuvanje</label>
+            <select   class="form-control" name="pnlEndId" id="pnlEndId">
+                <option class="form-control"
+                        th:each="pos : ${pnls}"
+                        th:text="${pos.postojkaByPId.pIme}"
+                        th:value="${pos.pnlId} "  ></option>
+
+
+            </select>
+        </p>
+
+        <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
+
+        <div class="row">
+            <div class="col-md-3">
+                <button id="submit" class="btn btn-lg btn-primary btn-block" type="submit">End</button>
+            </div>
+        </div>
+    </form>
+</div>
+
Index: src/main/resources/templates/fragments/header.html
===================================================================
--- src/main/resources/templates/fragments/header.html	(revision b101b69e1e4156497c29fa60f501b18007efeab7)
+++ src/main/resources/templates/fragments/header.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -14,8 +14,11 @@
           </li>
           <li class="nav-item m-auto">
-            <a class="nav-link active" href="/categories">Categories</a>
+            <a class="nav-link active" href="/vozenje">Vozenja</a>
           </li>
           <li class="nav-item m-auto">
-            <a class="nav-link active" href="/manufacturers">Manufacturers</a>
+            <a class="nav-link active" href="/kazna">Kazni</a>
+          </li>
+          <li class="nav-item m-auto">
+            <a class="nav-link active" href="/instanca-na-linija">Instanci</a>
           </li>
         </ul>
@@ -58,4 +61,9 @@
             </a>
           </li>
+          <li class="nav-item" sec:authorize="hasRole('ROLE_ADMIN')">
+            <a class="btn btn-light btn-sm ml-3" href="/admin">
+               Admin Menu
+            </a>
+          </li>
         </ul>
       </div>
Index: src/main/resources/templates/inlShow.html
===================================================================
--- src/main/resources/templates/inlShow.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/inlShow.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,115 @@
+<div class="container" xmlns:th="http://www.thymeleaf.org">
+    <form class="form-signin mt-xl-5" method="post" th:action="@{'/instanca-na-linija/{id}/end'(id=${inl.inlId})}">
+        <h2 class="form-signin-heading">Instanca na linija</h2>
+
+        <p>
+            <label for="aRegistracija" class="sr-only">Avtobus</label>
+            <input type="text"
+                   class="form-controll"
+                   th:value="${inl.avtobusByARegistracija.aRegistracija} "
+                   disabled
+                   name="aRegistracija"
+                   id="aRegistracija"
+            >
+        </p>
+
+        <p>
+            <label for="liId" class="sr-only">Linija</label>
+            <select id="liId" name="liId" class="form-control">
+                <option th:value="${inl.linijaByLiId.liId}"
+                        th:text="${inl.linijaByLiId.liIme} + ' - ' + ${inl.linijaByLiId.liPravec}"
+                        selected
+                        disabled></option>
+            </select>
+
+
+        </p>
+
+
+        <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
+
+        <div class="row">
+            <div class="col-md-3">
+                <button th:disabled="${inl.inlDatumEnd != null} ? 'true' : 'false'"
+                        id="submit"
+                        class="btn btn-lg btn-primary btn-block"
+                        type="submit"
+                        th:text="${inl.inlDatumEnd != null} ? 'Already ended' : 'End'"></button>
+            </div>
+        </div>
+    </form>
+
+    <div xmlns:th="http://www.thymeleaf.org">
+
+        <div class="container mb-4">
+            <div class="row">
+                <div class="col-12" >
+                    <div class="table-responsive">
+                        <table class="table table-striped">
+                            <thead>
+                            <tr>
+                                <th scope="col">#</th>
+                                <th scope="col">Timestamp</th>
+                                <th scope="col">Kondukter</th>
+                                <th scope="col"></th>
+                                <th scope="col"></th>
+                                <th scope="col"></th>
+                            </tr>
+                            </thead>
+                            <tbody>
+                            <tr th:each="kontrola : ${kontroli}" class="product">
+                                <td >
+                                    <a th:text="${kontrola.kontrolaId}" th:href="@{'/kontrola/{id}'(id= ${kontrola.kontrolaId})}"></a>
+                                </td>
+                                <td th:text="${kontrola.kontrolaDatum}"></td>
+                                <td th:text="${kontrola.korisnikByKondukterKId.kIme}"></td>
+
+                                <td class="text-right">
+                                    <!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
+                                    <!--                                    <form th:action="@{'/products/delete/{id}' (id=${vozenje.vozenjeId})}"-->
+                                    <!--                                          th:method="DELETE">-->
+                                    <!--                                        <button type="submit"-->
+                                    <!--                                                class="btn btn-sm btn-danger delete-product">-->
+                                    <!--                                            <i class="fas fa-trash-alt"></i> Delete-->
+                                    <!--                                        </button>-->
+                                    <!--                                    </form>-->
+                                    <!--                                </th:block>-->
+                                </td>
+                                <td>
+                                    <!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
+                                    <!--                                    <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"-->
+                                    <!--                                       class="btn btn-sm btn-info edit-product">-->
+                                    <!--                                        <i class="fas fa-edit"></i> Edit-->
+                                    <!--                                    </a>-->
+                                    <!--                                </th:block>-->
+                                </td>
+                                <td>
+<!--                                    <form th:action="@{'/kontrola/start-for/{id}'(id=${inl.inlId})}"-->
+<!--                                          th:method="GET">-->
+<!--                                        <button type="submit" class="btn btn-sm btn-success add-to-cart">-->
+<!--                                            <i class="fas fa-shopping-cart"></i> Kontrola-->
+<!--                                        </button>-->
+<!--                                    </form>-->
+                                </td>
+                            </tr>
+                            </tbody>
+                        </table>
+                    </div>
+                </div>
+                <div class="col mb-3">
+                    <div class="row">
+                        <div class="col-sm-12 col-md-12">
+                            <a href="/instanca-na-linija/start" class="btn btn-block btn-dark add-product-btn">
+                                Start instanca
+                            </a>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+
+
+
+</div>
+
Index: src/main/resources/templates/kontrola.html
===================================================================
--- src/main/resources/templates/kontrola.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/kontrola.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,152 @@
+<div xmlns:th="http://www.thymeleaf.org">
+    <section class="jumbotron text-center">
+        <div class="container">
+            <h1 class="jumbotron-heading">WEB PROGRAMMING SHOP</h1>
+            <h3 class="jumbotron-heading">All products</h3>
+        </div>
+    </section>
+
+
+    <form class="form-signin mt-xl-5" method="post" th:action="@{'/kontrola/{id}/kazni-neregistriran'(id=${kontrola.kontrolaId})}">
+        <h2 class="form-signin-heading">Kazna za neregirstiran</h2>
+
+        <p>
+            <label for="dokument" class="sr-only">Email</label>
+            <input class="form-control" name="dokument" id="dokument" type="text">
+        </p>
+
+
+        <p>
+            <label for="telefon" class="sr-only">Telefon</label>
+            <input class="form-control" name="telefon" id="telefon" type="text">
+        </p>
+
+        <p>
+            <label for="ime" class="sr-only">Ime</label>
+            <input class="form-control" name="ime" id="ime" type="text">
+        </p>
+
+        <p>
+            <label for="adresa" class="sr-only">Adresa</label>
+            <input class="form-control" name="adresa" id="adresa" type="text">
+        </p>
+
+
+        <p>
+            <label for="iznos" class="sr-only">Iznos</label>
+            <input class="form-control" name="iznos" id="iznos" type="number">
+        </p>
+
+
+        <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
+
+        <div class="row">
+            <div class="col-md-3">
+                <button id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Kazni</button>
+            </div>
+        </div>
+    </form>
+
+
+    <form class="form-signin mt-xl-5" method="post" th:action="@{'/kontrola/{id}/kazni-registriran'(id=${kontrola.kontrolaId})}">
+        <h2 class="form-signin-heading">Kazna za regirstiran</h2>
+
+        <p>
+            <label for="dk" class="sr-only">Dokument</label>
+            <input class="form-control" name="dokument" id="dk" type="text">
+        </p>
+
+        <p>
+            <label for="iz" class="sr-only">Iznos</label>
+            <input class="form-control" name="iznos" id="iz" type="number">
+        </p>
+
+        <p>
+            <label for="patnik" class="sr-only">Patnik</label>
+            <select id="patnik" name="patnik" class="form-control">
+                <option th:each="patnik : ${patnici}"
+                        th:value="${patnik.kId}"
+                        th:text="${patnik.kIme} + ' - ' + ${patnik.kEmail}">
+
+                </option>
+            </select>
+        </p>
+
+
+        <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
+
+        <div class="row">
+            <div class="col-md-3">
+                <button id="sub" class="btn btn-lg btn-primary btn-block" type="submit">Kazni</button>
+            </div>
+        </div>
+    </form>
+
+
+
+
+
+
+
+
+    <div class="container mb-4">
+        <div class="row">
+            <div class="col-12" >
+                <div class="table-responsive">
+                    <table class="table table-striped">
+                        <thead>
+                        <tr>
+                            <th scope="col">#</th>
+                            <th scope="col">Iznos</th>
+                            <th scope="col">Plateno</th>
+                            <th scope="col">Dokument</th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                        </tr>
+                        </thead>
+                        <tbody>
+                        <tr th:each="kazna : ${kazni}" class="product">
+                            <td th:text="${kazna.kzId}"></td>
+                            <td th:text="${kazna.kzIznos}"></td>
+                            <td th:text="${kazna.kzPlateno}"></td>
+                            <td th:text="${kazna.kzDokument}"></td>
+
+                            <td class="text-right">
+                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">
+                                    <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"
+                                          th:method="DELETE">
+                                        <button type="submit"
+                                                class="btn btn-sm btn-danger delete-product">
+                                            <i class="fas fa-trash-alt"></i> Delete
+                                        </button>
+                                    </form>
+                                </th:block>
+                            </td>
+                            <td>
+                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">
+                                    <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"
+                                       class="btn btn-sm btn-info edit-product">
+                                        <i class="fas fa-edit"></i> Edit
+                                    </a>
+                                </th:block>
+                            </td>
+                            <td>
+                                <form th:action="@{'/shopping-cart/add-product/{id}' (id=${kazna.kzId})}"
+                                      th:method="POST">
+                                    <button type="submit" class="btn btn-sm btn-success add-to-cart">
+                                        <i class="fas fa-shopping-cart"></i> Add to cart
+                                    </button>
+                                </form>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </div>
+            </div>
+
+        </div>
+    </div>
+</div>
+
+
Index: src/main/resources/templates/listInstanci.html
===================================================================
--- src/main/resources/templates/listInstanci.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/listInstanci.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,85 @@
+<div xmlns:th="http://www.thymeleaf.org">
+    <section class="jumbotron text-center">
+        <div class="container">
+            <h1 class="jumbotron-heading">WEB PROGRAMMING SHOP</h1>
+            <h3 class="jumbotron-heading">All products</h3>
+        </div>
+    </section>
+
+    <div class="container mb-4">
+        <div class="row">
+            <div class="col-12" >
+                <div class="table-responsive">
+                    <table class="table table-striped">
+                        <thead>
+                        <tr>
+                            <th scope="col">#</th>
+                            <th scope="col">Vozac</th>
+                            <th scope="col">Avtobus</th>
+                            <th scope="col">Linija</th>
+                            <th scope="col">Pravec</th>
+                            <th scope="col">Start date</th>
+                            <th scope="col">End date</th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                        </tr>
+                        </thead>
+                        <tbody>
+                        <tr th:each="inl : ${inls}" class="product">
+                            <td >
+                                <a th:text="${inl.inlId}" th:href="@{'/instanca-na-linija/{id}'(id= ${inl.inlId})}"></a>
+                            </td>
+                            <td th:text="${inl.korisnikByVozacKId.kIme}"></td>
+                            <td th:text="${inl.avtobusByARegistracija.aRegistracija}"></td>
+                            <td th:text="${inl.linijaByLiId.liIme}"></td>
+                            <td th:text="${inl.linijaByLiId.liPravec}"></td>
+                            <td th:text="${inl.inlDatumStart.toString()}"></td>
+                            <td th:text="${inl.inlDatumEnd != null} ? ${inl.inlDatumEnd.toString()} : 'Still active'"></td>
+
+                            <td class="text-right">
+<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
+<!--                                    <form th:action="@{'/products/delete/{id}' (id=${vozenje.vozenjeId})}"-->
+<!--                                          th:method="DELETE">-->
+<!--                                        <button type="submit"-->
+<!--                                                class="btn btn-sm btn-danger delete-product">-->
+<!--                                            <i class="fas fa-trash-alt"></i> Delete-->
+<!--                                        </button>-->
+<!--                                    </form>-->
+<!--                                </th:block>-->
+                            </td>
+                            <td>
+<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
+<!--                                    <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"-->
+<!--                                       class="btn btn-sm btn-info edit-product">-->
+<!--                                        <i class="fas fa-edit"></i> Edit-->
+<!--                                    </a>-->
+<!--                                </th:block>-->
+                            </td>
+                            <td>
+                                <form th:action="@{'/kontrola/start-for/{id}'(id=${inl.inlId})}"
+                                      th:method="GET">
+                                    <button type="submit" class="btn btn-sm btn-success add-to-cart">
+                                        <i class="fas fa-shopping-cart"></i> Kontrola
+                                    </button>
+                                </form>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </div>
+            </div>
+            <div class="col mb-3">
+                <div class="row">
+                    <div class="col-sm-12 col-md-12">
+                        <a href="/instanca-na-linija/start" class="btn btn-block btn-dark add-product-btn">
+                            Start instanca
+                        </a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+
Index: src/main/resources/templates/listKazni.html
===================================================================
--- src/main/resources/templates/listKazni.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/listKazni.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,77 @@
+<div xmlns:th="http://www.thymeleaf.org">
+    <section class="jumbotron text-center">
+        <div class="container">
+            <h1 class="jumbotron-heading">WEB PROGRAMMING SHOP</h1>
+            <h3 class="jumbotron-heading">All products</h3>
+        </div>
+    </section>
+
+    <div class="container mb-4">
+        <div class="row">
+            <div class="col-12" >
+                <div class="table-responsive">
+                    <table class="table table-striped">
+                        <thead>
+                        <tr>
+                            <th scope="col">#</th>
+                            <th scope="col">Iznos</th>
+                            <th scope="col">Plateno</th>
+                            <th scope="col">Dokument</th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                        </tr>
+                        </thead>
+                        <tbody>
+                        <tr th:each="kazna : ${kazni}" class="product">
+                            <td th:text="${kazna.kzId}"></td>
+                            <td th:text="${kazna.kzIznos}"></td>
+                            <td th:text="${kazna.kzPlateno}"></td>
+                            <td th:text="${kazna.kzDokument}"></td>
+
+                            <td class="text-right">
+                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">
+                                    <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"
+                                          th:method="DELETE">
+                                        <button type="submit"
+                                                class="btn btn-sm btn-danger delete-product">
+                                            <i class="fas fa-trash-alt"></i> Delete
+                                        </button>
+                                    </form>
+                                </th:block>
+                            </td>
+                            <td>
+                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">
+                                    <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"
+                                       class="btn btn-sm btn-info edit-product">
+                                        <i class="fas fa-edit"></i> Edit
+                                    </a>
+                                </th:block>
+                            </td>
+                            <td>
+                                <form th:action="@{'/shopping-cart/add-product/{id}' (id=${kazna.kzId})}"
+                                      th:method="POST">
+                                    <button type="submit" class="btn btn-sm btn-success add-to-cart">
+                                        <i class="fas fa-shopping-cart"></i> Add to cart
+                                    </button>
+                                </form>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </div>
+            </div>
+            <div class="col mb-3">
+                <div class="row">
+                    <div class="col-sm-12 col-md-12">
+                        <a href="/bilet/kupi" class="btn btn-block btn-dark add-product-btn">
+                            Kupi bilet
+                        </a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+
Index: src/main/resources/templates/listVozenja.html
===================================================================
--- src/main/resources/templates/listVozenja.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/listVozenja.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,79 @@
+<div xmlns:th="http://www.thymeleaf.org">
+    <section class="jumbotron text-center">
+        <div class="container">
+            <h1 class="jumbotron-heading">WEB PROGRAMMING SHOP</h1>
+            <h3 class="jumbotron-heading">All products</h3>
+        </div>
+    </section>
+
+    <div class="container mb-4">
+        <div class="row">
+            <div class="col-12" >
+                <div class="table-responsive">
+                    <table class="table table-striped">
+                        <thead>
+                        <tr>
+                            <th scope="col">#</th>
+                            <th scope="col">Status</th>
+                            <th scope="col">Korisnik Ime</th>
+                            <th scope="col">Bilet Id</th>
+                            <th scope="col">Tip Bilet</th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                            <th scope="col"></th>
+                        </tr>
+                        </thead>
+                        <tbody>
+                        <tr th:each="vozenje : ${vozenja}" class="product">
+                            <td th:text="${vozenje.vozenjeId}"></td>
+                            <td th:text="${vozenje.vozenjeStatus.name()}"></td>
+                            <td th:text="${vozenje.korisnikByPatnikKId.kIme}"></td>
+                            <td th:text="${vozenje.biletByBId.bId}"></td>
+                            <td th:text="${vozenje.biletByBId.tipbiletByTbId.tbIme}"></td>
+
+                            <td class="text-right">
+                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">
+                                    <form th:action="@{'/products/delete/{id}' (id=${vozenje.vozenjeId})}"
+                                          th:method="DELETE">
+                                        <button type="submit"
+                                                class="btn btn-sm btn-danger delete-product">
+                                            <i class="fas fa-trash-alt"></i> Delete
+                                        </button>
+                                    </form>
+                                </th:block>
+                            </td>
+                            <td>
+                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">
+                                    <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"
+                                       class="btn btn-sm btn-info edit-product">
+                                        <i class="fas fa-edit"></i> Edit
+                                    </a>
+                                </th:block>
+                            </td>
+                            <td>
+                                <form th:action="@{'/vozenje/{vozenjeId}/end'(vozenjeId=${vozenje.vozenjeId})}"
+                                      th:method="GET">
+                                    <button type="submit" class="btn btn-sm btn-success add-to-cart">
+                                        <i class="fas fa-shopping-cart"></i> End vozenje
+                                    </button>
+                                </form>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </div>
+            </div>
+            <div class="col mb-3">
+                <div class="row">
+                    <div class="col-sm-12 col-md-12">
+                        <a href="/vozenje/start" class="btn btn-block btn-dark add-product-btn">
+                            Start vozenje
+                        </a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+
+
Index: src/main/resources/templates/startInstanca.html
===================================================================
--- src/main/resources/templates/startInstanca.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/startInstanca.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,29 @@
+<div class="container" xmlns:th="http://www.thymeleaf.org">
+    <form class="form-signin mt-xl-5" method="post" action="/instanca-na-linija/start">
+        <h2 class="form-signin-heading">Start instanca na linija</h2>
+
+        <p>
+            <label for="aRegistracija" class="sr-only">Avtobus</label>
+            <select   class="form-control" name="aRegistracija" id="aRegistracija">
+                <option class="form-control" th:each="avtobus : ${avtobusi}" th:text="${avtobus.aRegistracija}"  th:value="${avtobus.aRegistracija} "  ></option>
+            </select>
+        </p>
+
+        <p>
+            <label for="liId" class="sr-only">Password</label>
+            <select id="liId" name="liId" class="form-control">
+                <option th:each="linija : ${linii}" th:value="${linija.liId}" th:text="${linija.liIme} + ' - ' + ${linija.liPravec}"></option>
+            </select>
+        </p>
+
+
+        <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
+
+        <div class="row">
+            <div class="col-md-3">
+                <button id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Start</button>
+            </div>
+        </div>
+    </form>
+</div>
+
Index: src/main/resources/templates/startVozenje.html
===================================================================
--- src/main/resources/templates/startVozenje.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
+++ src/main/resources/templates/startVozenje.html	(revision bde8b1381c72e66b4414f8010493f3f189b15c03)
@@ -0,0 +1,35 @@
+<div class="container" xmlns:th="http://www.thymeleaf.org">
+    <form class="form-signin mt-xl-5" th:method="${postojka} != null ? 'post' : 'get'" action="/vozenje/start">
+        <h2 class="form-signin-heading">Start vozenje</h2>
+
+        <p>
+            <label for="pnlId" class="sr-only">Postojka</label>
+            <select   class="form-control" name="pnlId" id="pnlId">
+                <option class="form-control" th:each="pos : ${postojki}" th:text="${pos.postojkaByPId.pIme}" th:selected="${postojka!= null && postojka.pnlId == pos.pnlId} ? 'true' : 'false' " th:disabled="${postojka!= null && postojka.pnlId != pos.pnlId} ? 'true' : 'false' "  th:value="${pos.pnlId} "  ></option>
+            </select>
+        </p>
+
+        <p th:hidden="${instanci} == null">
+            <label for="instanca" class="sr-only">Password</label>
+            <select id="instanca" name="inlId" class="form-control">
+                <option th:each="instanca : ${instanci}" th:value="${instanca.inlId}" th:text="${instanca.linijaByLiId.liIme} + ' - ' + ${instanca.linijaByLiId.liPravec}"></option>
+            </select>
+        </p>
+
+        <p th:hidden="${instanci} == null">
+            <label for="bilet" class="sr-only">Password</label>
+            <select id="bilet" name="bId" class="form-control">
+                <option th:each="bilet : ${bileti}" th:value="${bilet.bId}" th:text="${bilet.tipbiletByTbId.tbIme} + ' - ' + ${bilet.bStatus.name()}"></option>
+            </select>
+        </p>
+
+        <div th:if="${param.error}" th:text="${param.error}" class="text-danger"></div>
+
+        <div class="row">
+            <div class="col-md-3">
+                <button id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Start</button>
+            </div>
+        </div>
+    </form>
+</div>
+
