Changeset c79897f


Ignore:
Timestamp:
03/18/23 23:33:54 (16 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
e2104c4
Parents:
60e9cc1
Message:

Sredeni zabeleshki po diskusii

Location:
src/main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/config/WebSecurityConfig.java

    r60e9cc1 rc79897f  
    2828        http.csrf().disable()
    2929                .authorizeRequests()
    30                 .antMatchers("/", "/products", "/services", "/filtered", "/login", "/register","/registerWarehouseman","/finishRegister","/test/*","/access_denied","/carCategoryReport","/partManufacturersReport","/mostPurchasedPart").permitAll()
    31                 .antMatchers("/orders","/repairs","/reviews","/part/*","/currentOrder","/addCarSampleForUser","/repairs/addReview/*").hasRole("CLIENT")
     30                .antMatchers("/", "/products", "/services", "/filtered", "/login", "/register","/registerWarehouseman","/finishRegister","/test/*","/access_denied","/carCategoryReport","/partManufacturersReport","/mostPurchasedPart","/part/*").permitAll()
     31                .antMatchers("/orders","/repairs","/reviews","/currentOrder","/addCarSampleForUser","/repairs/addReview/*").hasRole("CLIENT")
    3232                .antMatchers("/viewUsers","/approve/*","/addPart","/addCarManufacturer","/addPartManufacturer","/addCategory","/addCar","/addRepairShop","/addWarehouse").hasRole("ADMIN")
    3333                .antMatchers("/myWarehouseReport","myWarehouse").hasRole("WAREHOUSEMAN")
  • src/main/resources/templates/addPart.html

    r60e9cc1 rc79897f  
    2222    <p>
    2323      <label for="cars">Соодветно за</label>
    24 <!--      <select class="form-control" id="cars" name="cars" required multiple="multiple">-->
    25 <!--        <option  th:each="c : ${cars}"-->
    26 <!--                 th:text="${c.getCartype()}"-->
    27 <!--                 th:value="${c.getId()}">-->
    28 <!--        </option>-->
    29 <!--      </select>-->
    30         <input type="checkbox" name="cars" id="cars"
    31                th:each="c : ${cars}"
    32                th:text="${c.getCartype()}"
    33                th:value="${c.getId()}"
    34         />
     24      <select class="form-control" id="cars" name="cars" required multiple="multiple">
     25        <option  th:each="c : ${cars}"
     26                 th:text="${c.getCartype()}"
     27                 th:value="${c.getId()}">
     28        </option>
     29      </select>
     30<!--        <input type="checkbox" name="cars" id="cars"-->
     31<!--               th:each="c : ${cars}"-->
     32<!--               th:text="${c.getCartype()}"-->
     33<!--               th:value="${c.getId()}"-->
     34<!--        />-->
    3535    </p>
    3636    <p>
    3737      <label for="categories">Во категории</label>
    38 <!--      <select class="form-control" id="categories" name="categories" required multiple="multiple">-->
    39 <!--        <option  th:each="c : ${categories}"-->
    40 <!--                 th:text="${c.getCname()}"-->
    41 <!--                 th:value="${c.getId()}">-->
    42 <!--        </option>-->
    43 <!--      </select>-->
    44       <input type="checkbox" name="categories" id="categories"
    45              th:each="c : ${categories}"
    46              th:text="${c.getCname()}"
    47              th:value="${c.getId()}"
    48       />
     38      <select class="form-control" id="categories" name="categories" required multiple="multiple">
     39        <option  th:each="c : ${categories}"
     40                 th:text="${c.getCname()}"
     41                 th:value="${c.getId()}">
     42        </option>
     43      </select>
     44<!--      <input type="checkbox" name="categories" id="categories"-->
     45<!--             th:each="c : ${categories}"-->
     46<!--             th:text="${c.getCname()}"-->
     47<!--             th:value="${c.getId()}"-->
     48<!--      />-->
    4949    </p>
    5050    <p>
  • src/main/resources/templates/currentOrder.html

    r60e9cc1 rc79897f  
    22    <h1 th:if="${hasError}" th:text="${error}"></h1>
    33    <div th:if="${!hasError}">
     4        <form th:action="@{'/products'}">
     5            <button class="btn btn-danger m-2" type="submit">Назад кон производи</button>
     6        </form>
    47        <h3 class="mt-3 mb-3">
    58            Тековна нарачка за корисник : <span th:text="${order.getUser().getUsername()}"></span>
Note: See TracChangeset for help on using the changeset viewer.