Ignore:
Timestamp:
02/18/24 22:01:54 (4 months ago)
Author:
ppaunovski <paunovskipavel@…>
Branches:
master
Children:
4251327
Parents:
bde8b13
Message:

All 3 main use cases implemented.

  1. Starting a commute
  2. Writing a ticket
  3. Starting an instance of a Bus Line
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/kontrola.html

    rbde8b13 re272096  
    11<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>
    82
     3    <div class="container mb-4">
     4        <div class="row">
     5            <div class="col-12" >
    96
    107    <form class="form-signin mt-xl-5" method="post" th:action="@{'/kontrola/{id}/kazni-neregistriran'(id=${kontrola.kontrolaId})}">
     
    129
    1310        <p>
    14             <label for="dokument" class="sr-only">Email</label>
     11            <label for="dokument" >Dokument</label>
    1512            <input class="form-control" name="dokument" id="dokument" type="text">
    1613        </p>
     
    1815
    1916        <p>
    20             <label for="telefon" class="sr-only">Telefon</label>
     17            <label for="telefon" >Telefon</label>
    2118            <input class="form-control" name="telefon" id="telefon" type="text">
    2219        </p>
    2320
    2421        <p>
    25             <label for="ime" class="sr-only">Ime</label>
     22            <label for="ime" >Ime</label>
    2623            <input class="form-control" name="ime" id="ime" type="text">
    2724        </p>
    2825
    2926        <p>
    30             <label for="adresa" class="sr-only">Adresa</label>
     27            <label for="adresa" >Adresa</label>
    3128            <input class="form-control" name="adresa" id="adresa" type="text">
    3229        </p>
     
    3431
    3532        <p>
    36             <label for="iznos" class="sr-only">Iznos</label>
     33            <label for="iznos" >Iznos</label>
    3734            <input class="form-control" name="iznos" id="iznos" type="number">
    3835        </p>
     
    4946
    5047
     48
    5149    <form class="form-signin mt-xl-5" method="post" th:action="@{'/kontrola/{id}/kazni-registriran'(id=${kontrola.kontrolaId})}">
    5250        <h2 class="form-signin-heading">Kazna za regirstiran</h2>
    5351
    5452        <p>
    55             <label for="dk" class="sr-only">Dokument</label>
     53            <label for="dk" >Dokument</label>
    5654            <input class="form-control" name="dokument" id="dk" type="text">
    5755        </p>
    5856
    5957        <p>
    60             <label for="iz" class="sr-only">Iznos</label>
     58            <label for="iz" >Iznos</label>
    6159            <input class="form-control" name="iznos" id="iz" type="number">
    6260        </p>
    6361
    6462        <p>
    65             <label for="patnik" class="sr-only">Patnik</label>
     63            <label for="patnik" >Patnik</label>
    6664            <select id="patnik" name="patnik" class="form-control">
    6765                <option th:each="patnik : ${patnici}"
     
    8280        </div>
    8381    </form>
     82
     83            </div>
     84        </div>
     85    </div>
     86
    8487
    8588
     
    114117
    115118                            <td class="text-right">
    116                                 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
    117                                     <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"
    118                                           th:method="DELETE">
    119                                         <button type="submit"
    120                                                 class="btn btn-sm btn-danger delete-product">
    121                                             <i class="fas fa-trash-alt"></i> Delete
    122                                         </button>
    123                                     </form>
    124                                 </th:block>
     119<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
     120<!--                                    <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"-->
     121<!--                                          th:method="DELETE">-->
     122<!--                                        <button type="submit"-->
     123<!--                                                class="btn btn-sm btn-danger delete-product">-->
     124<!--                                            <i class="fas fa-trash-alt"></i> Delete-->
     125<!--                                        </button>-->
     126<!--                                    </form>-->
     127<!--                                </th:block>-->
    125128                            </td>
    126129                            <td>
    127                                 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
    128                                     <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"
    129                                        class="btn btn-sm btn-info edit-product">
    130                                         <i class="fas fa-edit"></i> Edit
    131                                     </a>
    132                                 </th:block>
     130<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
     131<!--                                    <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"-->
     132<!--                                       class="btn btn-sm btn-info edit-product">-->
     133<!--                                        <i class="fas fa-edit"></i> Edit-->
     134<!--                                    </a>-->
     135<!--                                </th:block>-->
    133136                            </td>
    134137                            <td>
    135                                 <form th:action="@{'/shopping-cart/add-product/{id}' (id=${kazna.kzId})}"
    136                                       th:method="POST">
    137                                     <button type="submit" class="btn btn-sm btn-success add-to-cart">
    138                                         <i class="fas fa-shopping-cart"></i> Add to cart
    139                                     </button>
    140                                 </form>
     138
    141139                            </td>
    142140                        </tr>
Note: See TracChangeset for help on using the changeset viewer.