Changeset c79897f
- Timestamp:
- 03/18/23 23:33:54 (20 months ago)
- Branches:
- main
- Children:
- e2104c4
- Parents:
- 60e9cc1
- Location:
- src/main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/config/WebSecurityConfig.java
r60e9cc1 rc79897f 28 28 http.csrf().disable() 29 29 .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") 32 32 .antMatchers("/viewUsers","/approve/*","/addPart","/addCarManufacturer","/addPartManufacturer","/addCategory","/addCar","/addRepairShop","/addWarehouse").hasRole("ADMIN") 33 33 .antMatchers("/myWarehouseReport","myWarehouse").hasRole("WAREHOUSEMAN") -
src/main/resources/templates/addPart.html
r60e9cc1 rc79897f 22 22 <p> 23 23 <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 <!-- />--> 35 35 </p> 36 36 <p> 37 37 <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 <!-- />--> 49 49 </p> 50 50 <p> -
src/main/resources/templates/currentOrder.html
r60e9cc1 rc79897f 2 2 <h1 th:if="${hasError}" th:text="${error}"></h1> 3 3 <div th:if="${!hasError}"> 4 <form th:action="@{'/products'}"> 5 <button class="btn btn-danger m-2" type="submit">Назад кон производи</button> 6 </form> 4 7 <h3 class="mt-3 mb-3"> 5 8 Тековна нарачка за корисник : <span th:text="${order.getUser().getUsername()}"></span>
Note:
See TracChangeset
for help on using the changeset viewer.