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/listBileti.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">
     
    3126
    3227                            <td class="text-right">
    33                                 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
    34                                     <form th:action="@{'/products/delete/{id}' (id=${bilet.bId})}"
    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>
     28<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
     29<!--                                    <form th:action="@{'/products/delete/{id}' (id=${bilet.bId})}"-->
     30<!--                                          th:method="DELETE">-->
     31<!--                                        <button type="submit"-->
     32<!--                                                class="btn btn-sm btn-danger delete-product">-->
     33<!--                                            <i class="fas fa-trash-alt"></i> Delete-->
     34<!--                                        </button>-->
     35<!--                                    </form>-->
     36<!--                                </th:block>-->
    4237                            </td>
    4338                            <td>
    44                                 <th:block sec:authorize="hasRole('ROLE_ADMIN')">
    45                                     <a th:href="@{'/products/edit-form/{id}' (id=${bilet.bId})}"
    46                                        class="btn btn-sm btn-info edit-product">
    47                                         <i class="fas fa-edit"></i> Edit
    48                                     </a>
    49                                 </th:block>
     39<!--                                <th:block sec:authorize="hasRole('ROLE_ADMIN')">-->
     40<!--                                    <a th:href="@{'/products/edit-form/{id}' (id=${bilet.bId})}"-->
     41<!--                                       class="btn btn-sm btn-info edit-product">-->
     42<!--                                        <i class="fas fa-edit"></i> Edit-->
     43<!--                                    </a>-->
     44<!--                                </th:block>-->
    5045                            </td>
    5146                            <td>
    52                                 <form th:action="@{'/shopping-cart/add-product/{id}' (id=${bilet.bId})}"
    53                                       th:method="POST">
    54                                     <button type="submit" class="btn btn-sm btn-success add-to-cart">
    55                                         <i class="fas fa-shopping-cart"></i> Add to cart
    56                                     </button>
    57                                 </form>
     47
    5848                            </td>
    5949                        </tr>
Note: See TracChangeset for help on using the changeset viewer.