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/listKazni.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>
     2
    83
    94    <div class="container mb-4">
     
    1611                            <th scope="col">#</th>
    1712                            <th scope="col">Iznos</th>
     13                            <th scope="col">Datum</th>
    1814                            <th scope="col">Plateno</th>
     15                            <th scope="col">Datum plateno</th>
    1916                            <th scope="col">Dokument</th>
    2017                            <th scope="col"></th>
     
    2724                            <td th:text="${kazna.kzId}"></td>
    2825                            <td th:text="${kazna.kzIznos}"></td>
     26                            <td th:text="${kazna.kzDatum}"></td>
    2927                            <td th:text="${kazna.kzPlateno}"></td>
     28                            <td th:text="${kazna.kzDatumPlateno}"></td>
    3029                            <td th:text="${kazna.kzDokument}"></td>
    3130
    3231                            <td class="text-right">
    33                                 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
    34                                     <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"
    35                                           th:method="DELETE">
    36                                         <button type="submit"
    37                                                 class="btn btn-sm btn-danger delete-product">
    38                                             <i class="fas fa-trash-alt"></i> Delete
    39                                         </button>
    40                                     </form>
    41                                 </th:block>
     32<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
     33<!--                                    <form th:action="@{'/products/delete/{id}' (id=${kazna.kzId})}"-->
     34<!--                                          th:method="DELETE">-->
     35<!--                                        <button type="submit"-->
     36<!--                                                class="btn btn-sm btn-danger delete-product">-->
     37<!--                                            <i class="fas fa-trash-alt"></i> Delete-->
     38<!--                                        </button>-->
     39<!--                                    </form>-->
     40<!--                                </th:block>-->
    4241                            </td>
    4342                            <td>
    44                                 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
    45                                     <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"
    46                                        class="btn btn-sm btn-info edit-product">
    47                                         <i class="fas fa-edit"></i> Edit
    48                                     </a>
    49                                 </th:block>
     43<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
     44<!--                                    <a th:href="@{'/products/edit-form/{id}' (id=${kazna.kzId})}"-->
     45<!--                                       class="btn btn-sm btn-info edit-product">-->
     46<!--                                        <i class="fas fa-edit"></i> Edit-->
     47<!--                                    </a>-->
     48<!--                                </th:block>-->
    5049                            </td>
    5150                            <td>
    52                                 <form th:action="@{'/shopping-cart/add-product/{id}' (id=${kazna.kzId})}"
     51                                <form th:action="@{'/kazna/{id}/pay' (id=${kazna.kzId})}"
    5352                                      th:method="POST">
    5453                                    <button type="submit" class="btn btn-sm btn-success add-to-cart">
    55                                         <i class="fas fa-shopping-cart"></i> Add to cart
     54                                         Pay
    5655                                    </button>
    5756                                </form>
Note: See TracChangeset for help on using the changeset viewer.